SWAT is a GUI tools special for Samba services.
Before activate SWAT, you must execute somethings as follows,
1. verify the followed content exist in the file /etc/services:
SWAT 901/TCP # Samba Web Administration Tool
which designate the swat service to port 901, i.e., to use TCP protocol.
2. Edit /etc/xinetd.d/swat file, make sure replace 'yes' with 'no' in the 'disable' line:
disable = no
3. Restart xinetd script to activate the abovementioned changes:
# /etc/init.d/xinetd restart
after finished all these, try "http://localhost:901/" in your favourite browser,
or
execute your 'samba configuration' in your 'server setting' menu.