First, is it installed?
In recent RPMs (say RH 8 - RH 9 at least), SWAT is installed via a separate RPM (I believe samba-swat). If you compile from source, its probably ready to use (but see following).
Second, is it enabled?
The appropriate RPMs usually create a service file in /etc/xinetd.d called (appropriately) 'swat'. Edit that file and make sure the line 'disable = yes' is changed to 'disable = no'. For example, here is my swat file:
Code:
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 = no
}
Then restart xinetd and swat should be running:
Code:
bash#> kill -USR2 `head -1 /var/run/xinetd.pid`