| Author |
enabling SWAT on RH9 - Samba question
|
|
| muleherder 2004-01-23, 7:26 pm |
| I have been trying to enable SWAT on a brand new RH9 install so I can
configure samba.conf. I see port 901 is enabled in services but I can't
find a inetd.conf file to look at. Where does RedHat hide it?
Typing http://mymachine:901 produces error 'The connection was refused
when attempting to contact mymachine'.
I have also tried to manually edit samba.conf but no joy in Mudville. I
am trying to share a public directory(had it working on a prior install on
SuSE) and print to a shared printer on a
Win 2k machine.
thanx in advance
harvey
| |
| Alan Smith 2004-01-23, 7:26 pm |
| You need to enable this port via xinetd
You should have a config directory /etc/xinetd.d and you should find thr
rpm's dropped a swat file in there.
The defult is to be disabled so you need to enable it. If you don't have a
copy it should look like this:
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
log_on_failure += USERID
port = 901
socket_type = stream
user = root
server = /usr/sbin/swat
wait = no
only_from = localhost x.x.x.x/24 y.y.y.y/16
}
HTH
Alan
"muleherder" <harvm2@SPAM.swbell.net> wrote in message
news:pan.2003.11.07.03.00.15.435547@SPAM.swbell.net...quote:
> I have been trying to enable SWAT on a brand new RH9 install so I can
> configure samba.conf. I see port 901 is enabled in services but I can't
> find a inetd.conf file to look at. Where does RedHat hide it?
>
> Typing http://mymachine:901 produces error 'The connection was refused
> when attempting to contact mymachine'.
>
> I have also tried to manually edit samba.conf but no joy in Mudville. I
> am trying to share a public directory(had it working on a prior install on
> SuSE) and print to a shared printer on a
> Win 2k machine.
>
> thanx in advance
> harvey
| |
| muleherder 2004-01-23, 7:26 pm |
| Thanks Alan for the followup.
OK I am getting closer to understanding this but I can't get it working
yet. SWAT has not been installed. But the redhat samba config is
installed which I think does much the same. I created the share /public
with read/write access to everybody and then used the samba user to add
samba users.
But when I try to access the share from Win2000 I see the linux machine
but when I click on it I get a network path not found.
Thanks for any help.
On Fri, 07 Nov 2003 10:35:28 +0000, Alan Smith wrote:
quote:
> You need to enable this port via xinetd
| |
| Alan Smith 2004-01-23, 7:26 pm |
| SWAT is normally installed as part of the Samba install, you won't see it as
part of a rpm -q.
It should fire up on http://localhost:901/ if your xinetd is configured
right.
You should also see it under the services screen if you have Webmin
installed.
the config is in /etc/samba/smb.conf
the users are in /etc/samba/smbpasswd use smbpasswd or wemin (with autosync
on) to add users.
If you edit the conf file it would probably be worth restarting Samba
/etc/init.d/smb restart but you can check your new config with testparm
before you do this.
HTH
Alan
"muleherder" <harvm2@SPAM.swbell.net> wrote in message
news:pan.2003.11.12.03.51.32.381173@SPAM.swbell.net...quote:
> Thanks Alan for the followup.
>
> OK I am getting closer to understanding this but I can't get it working
> yet. SWAT has not been installed. But the redhat samba config is
> installed which I think does much the same. I created the share /public
> with read/write access to everybody and then used the samba user to add
> samba users.
>
> But when I try to access the share from Win2000 I see the linux machine
> but when I click on it I get a network path not found.
>
> Thanks for any help.
>
> On Fri, 07 Nov 2003 10:35:28 +0000, Alan Smith wrote:
>
>
>
| |
|
| muleherder wrote:
quote:
> I have been trying to enable SWAT on a brand new RH9 install so I can
> configure samba.conf. I see port 901 is enabled in services but I can't
> find a inetd.conf file to look at. Where does RedHat hide it?
>
> Typing http://mymachine:901 produces error 'The connection was refused
> when attempting to contact mymachine'.
>
> I have also tried to manually edit samba.conf but no joy in Mudville. I
> am trying to share a public directory(had it working on a prior install on
> SuSE) and print to a shared printer on a
> Win 2k machine.
>
> thanx in advance
> harvey
Greetings!
You need to have httpd running, which means configuring Apache
to function as an actual web server. Most of the time just typing
httpd from root will do the trick.
eric
| |
|
| Salutations!
You may have to install SWAT from the EXTRA directory...probably
on cd3, if you have the normal distro. Make sure you have
httpd running as well. Test this by opening a browser
and setting the address to http://127.0.0.1 You should get the
apache test page
Eric
Alan Smith wrote:
[QUOTE][color=darkred]
> SWAT is normally installed as part of the Samba install, you won't see it
> as part of a rpm -q.
>
> It should fire up on http://localhost:901/ if your xinetd is configured
> right.
>
> You should also see it under the services screen if you have Webmin
> installed.
>
> the config is in /etc/samba/smb.conf
>
> the users are in /etc/samba/smbpasswd use smbpasswd or wemin (with
> autosync on) to add users.
>
> If you edit the conf file it would probably be worth restarting Samba
> /etc/init.d/smb restart but you can check your new config with testparm
> before you do this.
>
> HTH
>
> Alan
>
> "muleherder" <harvm2@SPAM.swbell.net> wrote in message
> news:pan.2003.11.12.03.51.32.381173@SPAM.swbell.net...
|
|
|
|