Samba service can provides files haring and printing services to its clients. System administrator can install SWAT in order to configure samba and perform samba administration from the web browser. In this post i will show simple steps to get Samba SWAT running on your CentOS 6.5 server. With SWAT, you can easily manage your samba server without messing with command line. You just need to install xinetd together with samba-SWAT software.
1. Install samba-swat and xinetd :
[root@samba ~]# yum install samba-swat xinetd -y
2. Software install will be as below :
==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: samba-swat x86_64 3.6.9-167.el6_5 updates 7.3 M Installing for dependencies: libtalloc x86_64 2.0.7-2.el6 base 20 k libtdb x86_64 1.2.10-1.el6 base 33 k libtevent x86_64 0.9.18-3.el6 base 26 k samba x86_64 3.6.9-167.el6_5 updates 5.0 M samba-common x86_64 3.6.9-167.el6_5 updates 10 M samba-winbind x86_64 3.6.9-167.el6_5 updates 2.1 M samba-winbind-clients x86_64 3.6.9-167.el6_5 updates 2.0 M xinetd x86_64 2:2.3.14-39.el6_4 base 121 k Transaction Summary ==================================================================================================== Install 9 Package(s) Total download size: 27 M Installed size: 85 M
3. Add 192.168.0.0/24 network and enable swat by set ‘disable’ to ‘no’.
# 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 = 127.0.0.1 192.168.0.0/16 user = root server = /usr/sbin/swat log_on_failure += USERID disable = no }
4. Start the xinetd service :
[root@samba ~]# service xinetd start Starting xinetd: [ OK ]
5. Make xinetd auto start at boot :
[root@samba ~]# chkconfig xinetd on
6. Access to [http://(server’s IP address):901] and enter root login password.