Click to See Complete Forum and Search --> : inetd? Samba/SWAT problem


BadMotorFinger
06-03-2001, 08:52 PM
I've been using Linux for about two days, so I'm pretty dumb at this.

Anyway I'm using RedHat 7.1, this machine has a printer I want to share with the Windows boxes on my small home network.
I was attempting to setup Samba according the Samba NHF on this site, all was going well until I got to the part where it says "Next we check the /etc/inetd.conf file for a line that looks like this:

swat stream tcp nowait.400 root /usr/sbin/swat swat"

My problem is I don't have a /etc/inetd.conf file, in fact I don't have anything named inetd.conf on my hard drive at all. Is this a program I need to download or get off my RH cds?
Any help at all here is welcome.

BFC
06-03-2001, 09:03 PM
Redhat 7.1 uses xinetd and not inetd.conf

Anyways to start samba in Redhat, while root, open a console window and type ntsysv. Scroll down and select smb. Exit and reboot. Now samba should start automatically.

Hope this helps

BFC

BadMotorFinger
06-04-2001, 02:04 PM
Thanks for the reply man.
Unfortunately my Linux system is having some serious issues, I think my old Celeron is dying. :(

Craig McPherson
06-14-2001, 07:45 PM
This is what an xinetd entry for SWAT would look like:

service swat
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
}


You can use itox to convert inetd-style entries to xinetd-style.