{"id":2669,"date":"2012-04-02T00:29:26","date_gmt":"2012-04-01T16:29:26","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2669"},"modified":"2023-04-28T09:49:37","modified_gmt":"2023-04-28T09:49:37","slug":"how-to-install-swat-to-configure-samba-from-web-browser-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-swat-to-configure-samba-from-web-browser-on-centos-6-2\/","title":{"rendered":"How to Install SWAT to Configure Samba from Web browser on CentOS 6.2"},"content":{"rendered":"<p>SWAT is a Samba Web Administration Tool. SWAT is a facility that is part of the Samba suite. SWAT allows a Samba administrator to configure the complex smb.conf. In this post, i will share on how to install and configure SWAT to Configure Samba on linux CentOS 6.2 server.<\/p>\n<p>1. Run this command to install samba SWAT :<\/p>\n<pre>\n[root@centos62 ~]# yum install xinetd samba-swat -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: centos.ipserverone.com\n * extras: centos.ipserverone.com\n * updates: centos.ipserverone.com\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package samba-swat.i686 0:3.5.10-114.el6 will be installed\n--> Processing Dependency: samba = 3.5.10-114.el6 for package: samba-swat-3.5.10-114.el6.i686\n--> Processing Dependency: samba-winbind-clients = 3.5.10-114.el6 for package: samba-swat-3.5.10-114.el6.i686\n--> Processing Dependency: libwbclient.so.0 for package: samba-swat-3.5.10-114.el6.i686\n---> Package xinetd.i686 2:2.3.14-33.el6 will be installed\n--> Running transaction check\n---> Package samba.i686 0:3.5.10-114.el6 will be installed\n--> Processing Dependency: samba-common = 3.5.10-114.el6 for package: samba-3.5.10-114.el6.i686\n---> Package samba-winbind-clients.i686 0:3.5.10-114.el6 will be installed\n--> Running transaction check\n---> Package samba-common.i686 0:3.5.10-114.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                          Arch            Version                     Repository       Size\n====================================================================================================\nInstalling:\n samba-swat                       i686            3.5.10-114.el6              base            3.0 M\n xinetd                           i686            2:2.3.14-33.el6             base            121 k\nInstalling for dependencies:\n samba                            i686            3.5.10-114.el6              base            5.0 M\n samba-common                     i686            3.5.10-114.el6              base             13 M\n samba-winbind-clients            i686            3.5.10-114.el6              base            1.1 M\n\nTransaction Summary\n====================================================================================================\nInstall       5 Package(s)\n\nTotal download size: 22 M\nInstalled size: 81 M\nDownloading Packages:\n(1\/5): samba-3.5.10-114.el6.i686.rpm                                         | 5.0 MB     03:00\n(2\/5): samba-common-3.5.10-114.el6.i686.rpm                                  |  13 MB     07:32\n(3\/5): samba-swat-3.5.10-114.el6.i686.rpm                                    | 3.0 MB     01:40\n(4\/5): samba-winbind-clients-3.5.10-114.el6.i686.rpm                         | 1.1 MB     00:38\n(5\/5): xinetd-2.3.14-33.el6.i686.rpm                                         | 121 kB     00:03\n----------------------------------------------------------------------------------------------------\nTotal                                                                30 kB\/s |  22 MB     12:57\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : samba-winbind-clients-3.5.10-114.el6.i686                                        1\/5\n  Installing : samba-common-3.5.10-114.el6.i686                                                 2\/5\n  Installing : samba-3.5.10-114.el6.i686                                                        3\/5\n  Installing : 2:xinetd-2.3.14-33.el6.i686                                                      4\/5\n  Installing : samba-swat-3.5.10-114.el6.i686                                                   5\/5\n\nInstalled:\n  samba-swat.i686 0:3.5.10-114.el6                    xinetd.i686 2:2.3.14-33.el6\n\nDependency Installed:\n  samba.i686 0:3.5.10-114.el6                           samba-common.i686 0:3.5.10-114.el6\n  samba-winbind-clients.i686 0:3.5.10-114.el6\n\nComplete!\n<\/pre>\n<p>2. Open swat configuration file :<\/p>\n<pre>\n[root@centos62 ~]# vi \/etc\/xinetd.d\/swat\n<\/pre>\n<p>3. Add IP address you permit. In this example, i will add 192.168.1.0\/24 network and enable swat by set &#8216;disable&#8217; to &#8216;no&#8217;.<\/p>\n<p>Original configuration file :<\/p>\n<pre>\n# default: off\n# description: SWAT is the Samba Web Admin Tool. Use swat \\\n#              to configure your Samba server. To use SWAT, \\\n#              connect to port 901 with your favorite web browser.\nservice swat\n{\n        port            = 901\n        socket_type     = stream\n        wait            = no\n        only_from       = 127.0.0.1\n        user            = root\n        server          = \/usr\/sbin\/swat\n        log_on_failure  += USERID\n        disable         = yes\n}\n<\/pre>\n<p>Change to :<\/p>\n<pre>\n# default: off\n# description: SWAT is the Samba Web Admin Tool. Use swat \\\n#              to configure your Samba server. To use SWAT, \\\n#              connect to port 901 with your favorite web browser.\nservice swat\n{\n        port            = 901\n        socket_type     = stream\n        wait            = no\n        only_from       = 127.0.0.1 192.168.1.0\/24\n        user            = root\n        server          = \/usr\/sbin\/swat\n        log_on_failure  += USERID\n        disable         = no\n}\n<\/pre>\n<p>4. Start xinetd service :<\/p>\n<pre>\n[root@centos62 ~]# \/etc\/rc.d\/init.d\/xinetd start\nStarting xinetd:                                           [  OK  ]\n<\/pre>\n<p>5. Enable xinetd service auto start at boot :<\/p>\n<pre>\n[root@centos62 ~]# chkconfig xinetd on\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SWAT is a Samba Web Administration Tool. SWAT is a facility that is part of the Samba suite. SWAT allows a Samba administrator to configure the complex smb.conf. In this&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2671,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,1063],"tags":[1244,1253,1536,1546,1733,1819],"class_list":["post-2669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-swat","tag-centos","tag-centos-6-2","tag-linux","tag-linux-utilities","tag-samba","tag-swat"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2669"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2671"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}