samba-swat is the short form of Samba Web Administration Tool. Its easy to create shares, manage and monitor share for samba. Lets see installing it on your machine.

Download samba-swat package here


Before downloading it check the version of samba packages on your machine.

[root@manny ~]# rpm -qa |grep samba*

samba-common-3.5.4-68.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
samba-3.5.4-68.el6.x86_64
samba-winbind-3.5.4-68.el6.x86_64

so your version is 3.5.4 ................ so you need to search for the same version of swat in http://pkgs.org/ . If this version is not available, download all samba packages same as samba-swat package available in the website. Then install with below command one by one.

[root@manny Downloads~]# rpm -ivh samba-swat -3.5.4-68.el6.x86_64

In case if you downloaded all the packages same version as samba-swat. Uninstall previous versions first then keep all the downloaded packages in to a folder, now go to that directory and use below command to install all the rpms at once.

[root@manny ~]# cd newdirectory
[root@manny newdirectory ~]# rpm -ivh *

After installation start samba service, before that one package to install and edit /etc/xinetd.d/swat

[root@manny ~]# yum install xinetd

[root@manny ~]# vi /etc/xinetd.d/swat

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
 port    = 901
 socket_type     = stream
 wait    = no
 only_from = localhost, 192.168.85.0/24
        user    = root
 server  = /usr/sbin/swat
 log_on_failure  += USERID
 disable = yes
}
[root@manny ~]# /etc/init.d/smb restart
[root@manny ~]# /etc/init.d/xinetd restart

Just add your network to only_from parameter and change disable=yes.

Now open browser http://localhost:901 and hit enter. you can change port in configuration file if needed. Thats all give root as username and password to enter in to it.