This tutorial is based on Feisty Fawn 7.04 and still connected with my previous tutorial on how to setup Samba on Ubuntu .
SWAT is poorly configured in Ubuntu so you should manually edit some files and installing the dependency program.
First install swat by executing:
sudo apt-get install swat
Then try to access swat by executing http://localhost:901 on your Firefox. aargghhh it’s failed. This is becaused xinetd hasn’t been installed. Okay, then follow the next step.
You have to install xinetd to perform as the webserver. Do it by executing:
sudo apt-get install xinetd
Normally you don’t have to change /etc/inetd.conf but on the previous version of Ubuntu, you should uncomment the inetd.conf file so the content will be like this:
swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
Then open /etc/xinetd.d/swat (by default this file is nonexistence, so you should make it by your own):
sudo gedit /etc/xinetd.d/swat
Copy codes below into that file.
follow by executing commad:
sudo dpkg-reconfigure xinetd
Oke, open Firefox and open http://localhost:901, Enter your username and password, and Voila…you should be able to see SWAT right now.
Tags: SWAT. Samba Web Administration Tool, SWAT Ubuntu, Connection refused.