Phil’s Diary - [Blog @ http://www.philsdiary.net/]
Tuesday October 30, 2001
Setting up SWAT

Swat’s a nice web based admin tool for Samba. Samba’s a bit fidly to get working for a complete beginner (like me) just with the smb.conf file. Swat helps here.

First you’d better make sure you’ve got it installed, locate swat is one way.

Next check in /etc/xinetd.d/ there should be a file called swat. If not, chances are you’ve not installed it. Open the file, and edit the line disable = yes, to disable = no. Also, if intending to adminsitrate from another machine, edit only_from (beware, connecting a box which lets all machines in to the internet is madness).

Now also check /etc/services. Check that the tcp port in that swat file (901 by default) is listed, if not (as mine wasn’t) just add it (with appropriate comments).

Now you’ll need to restart xinetd.d. So either reboot, or find the pid of xinetd (ps -aux | grep xinetd), now kill -USR1 that pid. That will get it to restart, taking into account the changes.

Now pop up a web browser and browse to http://:901 . The http:// bit seems important, so don’t forget it.

Posted by Phil on October 30, 2001 06:26 PM | Categories: Linux