Click to See Complete Forum and Search --> : SWAT file missing from /etc/xinetd.d
chasman
02-19-2003, 12:05 AM
:confused:
TIA for any help that any of you can lend me!
I am trying to use SWAT, but when I look in /etc/xinetd.d there is not a swat file listed. I am using RH 8.0 and WebMin works great, but for whatever reason the swat file is nowhere to be found on the hard drive. Any ideas?
Chas
homey
02-19-2003, 12:21 AM
Assuming that you do have swat installed, you can try creating the file and paste this in...
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
# disable = yes
}
chasman
02-19-2003, 12:34 AM
I had thought of that, but I was a little nervous about trying it! Does SWAT have to be installed first? I thought it was installed automatically when you chose the option to install samba....
I looked on the 2nd install cd and did not see an rpm - do I have to download it?
Thanks,
Chas
homey
02-19-2003, 02:47 AM
Your distro may not install it automatically. The file that you want may be called samba-swat or something like that.
Check out this....http://rpmfind.net/linux/RPM/redhat/updates/8.0/i386/samba-swat-2.2.7-2.i386.html
GnomeProject
02-19-2003, 03:18 AM
I believe you didn't enable SWAT b/c most of the time, especially with RED HAT SWAT is automatically installed.
TRY THIS: (Taken from RED HAT LINUX 7.3 BIBLE)
1. In /etc/services, make sure that the following line exists. This assigns the swat service to port 901, using the TCP protocol.
swat 901/tcp # Sama Web Administration Tool
2. In the /etc/xinetd.d/swat file, you need to change the disable line from yes to no. This is how the line should appear after that.
diable = no
3. For the changes to xinetd and /etc/services to take effect, you restart the xinetd start-up script as follows:
/etc/init.d/xinetd restart
When you have finished type this into your favorite web-browser...
http://localhost:901:/
*Obviously change localhost to whatever your hostname might be...
Hope that helps!