Click to See Complete Forum and Search --> : Redhat 7 w/ xinetd + swat fix


KnaveWave
07-05-2001, 09:20 PM
I have read a couple of posts about people having trouble getting swat to run on redhat 7, due to confusion w/ inetd and xinetd. This is what i did to get mine working.

first off, to clear some confusion, if you are using xinetd instead of inetd, you are not going to have an /etc/inetd.conf file to edit. Instead xinetd uses a script like file under /etc/xinetd.d/name_of_service that configures a service for the superserver(xinetd). Under redhat i used a utility called ntsysv that generated this files for me (this utility may be included on other distros, but i cant back that up). I simply selected smb and swat and hit ok then changed the only_from = line and wahalah it worked.

Heres how you do the hookey pokey:

1. install the xinetd rpm from the redhat cd

2. run #ntsysv, making sure swat and smb are checked

3. double check your /etc/services file for the line:

swat 901/tcp # Add swat service

4. And here is the tricky part: for some reason the line "only_from = localhost" generated by ntsysv would not work for me.
Once i changed it to my computers ip "192.168.0.3" (I didnt try 127.0.0.1 that might work also) it would work, and yes ping localhost will work perfectly on my system.

heres my /etc/xinetd.d/swat file:

service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = YOUR_SYSTEMS_IP
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}

...but what do i know im just a punk

If anyone can tell me how i would go about browsing my other windows comps, id be much abliged :)