[root@www gugong]# cat /etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = yes
port = 901
socket_type = stream
wait = no only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}