Click to See Complete Forum and Search --> : Samba, xinetd.


Juliako
07-11-2002, 07:58 PM
I'm using Red Hat 7.2 and I installed Samba 2.2.5 to access another computer running Win 2000 Pro.

After installation, I'm told that I have to add a line to /etc/services:

swat 901/tcp

and add another line to inetd.conf. But I don't use inetd, I use xinetd. All the pages in Google talking about this say that I have to modify the file "swat" in the /etc/xinetd.d directory, but I don't have that file.

So, looking at all the files in /etc/xinetd.d, I realised that they all have the same structure, so I created a swat file, this way:

service swat
{
type = INTERNAL
id = swat-stream
socket_type = stream
protocol = tcp
user = root
wait =no
disable = no
}

Then I restarted xinetd:

/etc/init.d/xinetd restart

and it didn't work. I just can't connect to localhost:901, connection is always refused. Will somebody please tell me how to open that port, 901?

baldguy
07-11-2002, 08:00 PM
Do you have swat installed?

cowanrl
07-12-2002, 04:57 AM
This is my xinetd swat file in /etc/xinitd.d on RH 7.3:

# 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
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}

If you downloaded the Samba 2.2.5-1 RPM package for Red Hat from Samba.org, SWAT should be installed.

Juliako
07-12-2002, 07:08 AM
MUAHAHAHA, it works! Thanks a lot, pal.