SWAT is a configuration utility included with the Samba package. To make it available you must first comment out (delete the # at the beginning of the line) the line: swat stream tcp nowait.400 root /usr/sbin/swat swat in /etc/inet.conf file and then restart inet services through /etc/rc.d/init.d/inet restart.
From your favorite web browser (preferably a graphical one), type in the following URL: http://localhost:901. An authentication window should appear (figure 6-1) where you will be asked for a login name and password. The root login should be secure enough.
Here you are, in a graphical interface to edit the parameters of smb.conf. You should be able to use this interface without trouble, following the explanations given here and consulting the manual pages for more specific configurations.