Configuring the SAMBA Web Administration Tool (SWAT) for Solaris 10
SWAT is a web based tool for managing a SAMBA server environment. It provides a GUI to manage the SAMBA configuration files (Global Settings, Shares, Printers etc), gives you simple interface to view SAMBA documentation and allows you to stop and restart the SAMBA processes.
SWAT ships with Solaris 10 in /usr/sfw/sbin and, like the version of SAMBA we ship, is supported by Sun.
The below is correct for Solaris 9 and Solaris 10 up to Solaris 10 Update 3 (11/06). If you are running Solaris 10 Update 4 (8/07) or later you need to look at this blog entry.
Here is how you enable SWAT:
- Add the following line to /etc/services:
- Add the following line to /etc/inetd.conf:
swat stream tcp nowait root /usr/sfw/sbin/swat swat
- Run the command inetconv to compile the new information in inetd.conf into Solaris. You should see messages about XML files being created, something like the below:
swat -> /var/svc/manifest/network/swat-tcp.xml
Importing swat-tcp.xml ...Done
You should now be able to connect to SWAT using a browser, just point your browser at http://servername:901.
If you want to know how to enable SAMBA in Solaris 10 in the first place, check out this blog entry.