Using SWAT requires you to install the inetd and swat packages, so make sure you have these before proceeding.
Also you need to enable the root account by giving it a password by using the command sudo passwd root. Not enabling the root account prevents you from using SWAT effectively.
You need to perform a few steps before you can start using SWAT. First, make sure you have the Samba and the swat packages installed. You then enable SWAT access to your system by editing the /etc/inetd.conf file by changing the following line to remove the #<off># comments:
#<off># swat stream tcp nowait.400 root\ /usr/sbin/tcpd /isr/sbin/swat
Save the file, and then restart the inetd daemon using the following command:
# /etc/init.d/inetd restart
Next, start an X session, launch Firefox, and browse to the http://localhost:901 uniform resource locator (URL). You are presented a login prompt. Enter the root username and password, and then click the OK button. The screen clears, and you see the main SWAT page, as shown in Figure 22.2.
Was this article helpful?