Steps to take
- As the root user, create a file in /etc/xinetd.d named swat:
sudo vi /etc/xinetd.d/swat
- Paste these contents:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
groups = yes
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = No
} - Edit (as root) /etc/services to include:
swat 901/tcp
- Restart the xinetd daemon with this command:
sudo kill -HUP `cat /var/run/xinetd.pid`
Sometimes xinetd doesn't restart here; if a ps -ax doesn't show xinetd, then use this command to restart xinetdsudo xinetd -pidfile /var/run/xinetd.pid

