Click to See Complete Forum and Search --> : Samba


ZionDesign
03-26-2003, 12:20 PM
I just installed Red Hat 8, my first linux box, and when I tried to configure samba from Natulis it keeps giving me an error "Conection Refusd: 1270.0.1:901" I installed all the packages on the install cd, so I know its there. Can anybody help me out.

michaelk
03-26-2003, 12:47 PM
Did you install swat? Check your running processes (ps or top) to verify that swat is started. Anyway swat is just the webserver configuration tool for samba's configuration file i.e smb.conf. (Not real familar with RH) In RH GUI configuration tool you can select swat and smb to start at boot.

For more info on samba look at www.samba.org.

absolutezero273
03-26-2003, 02:35 PM
When I installed RH8 and selected SMB it didn't install SWAT automatically.

Even if you did select to install everything.

You'll have to go back and select to install that RPM from your source CD.

After you install SWAT make sure that you have a file etc/xinetd.d/swat

That is, as michaelk mentioned, after you have verified that smb service has started.

ZionDesign
03-26-2003, 06:23 PM
How can I make sure that the sbd.conf files is running? Top?

Magueta
03-26-2003, 08:33 PM
To see if Samba is running you can use ps -ef | grep smbd, and ps -ef | grep nmbd. Swat starts with xinetd when you connect so you really can't tell if it's running until you try to connect. If it's installed you should have the following files on your system


/usr/sbin/swat
/usr/share/swat
/etc/xinetd.d/swat


and the file /etc/xinetd.d/swat should contain the following lines and configuration options


service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = [enter an ip address here to restrict where
swat can be used from]
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}


You should also know that the most common source of problems with Swat is some sort of firewall or port filtering software (at least that's what happened to me :) ) Also, that's what the Swat man page says. Be sure to read the Swat man page as it contains most or all of the information that I'm putting in this post.

Joe