{"id":4861,"date":"2014-03-24T00:12:51","date_gmt":"2014-03-23T16:12:51","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4861"},"modified":"2023-04-28T09:48:19","modified_gmt":"2023-04-28T09:48:19","slug":"how-to-setup-samba-swat-on-centos-6-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-samba-swat-on-centos-6-5\/","title":{"rendered":"How to Setup Samba SWAT on CentOS 6.5"},"content":{"rendered":"<p>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.<\/p>\n<p>1. Install samba-swat and xinetd :<\/p>\n<pre>\n[root@samba ~]# yum install samba-swat xinetd -y\n<\/pre>\n<p>2. Software install will be as below :<\/p>\n<pre>\n====================================================================================================\n Package                        Arch            Version                      Repository        Size\n====================================================================================================\nInstalling:\n samba-swat                     x86_64          3.6.9-167.el6_5              updates          7.3 M\nInstalling for dependencies:\n libtalloc                      x86_64          2.0.7-2.el6                  base              20 k\n libtdb                         x86_64          1.2.10-1.el6                 base              33 k\n libtevent                      x86_64          0.9.18-3.el6                 base              26 k\n samba                          x86_64          3.6.9-167.el6_5              updates          5.0 M\n samba-common                   x86_64          3.6.9-167.el6_5              updates           10 M\n samba-winbind                  x86_64          3.6.9-167.el6_5              updates          2.1 M\n samba-winbind-clients          x86_64          3.6.9-167.el6_5              updates          2.0 M\n xinetd                         x86_64          2:2.3.14-39.el6_4            base             121 k\n\nTransaction Summary\n====================================================================================================\nInstall       9 Package(s)\n\nTotal download size: 27 M\nInstalled size: 85 M\n<\/pre>\n<p>3. Add 192.168.0.0\/24 network and enable swat by set \u2018disable\u2019 to \u2018no\u2019.<\/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.0.0\/16\n        user            = root\n        server          = \/usr\/sbin\/swat\n        log_on_failure  += USERID\n        disable         = no\n}\n<\/pre>\n<p>4. Start the xinetd service :<\/p>\n<pre>\n[root@samba ~]# service xinetd start\nStarting xinetd:                                           [  OK  ]\n<\/pre>\n<p>5. Make xinetd auto start at boot :<\/p>\n<pre>\n[root@samba ~]# chkconfig xinetd on\n<\/pre>\n<p>6. Access to [http:\/\/(server&#8217;s IP address):901] and enter root login password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":4863,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,1043,1063],"tags":[1256,1536,1733,1819],"class_list":["post-4861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-samba","category-swat","tag-centos-6-5","tag-linux","tag-samba","tag-swat"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4861","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=4861"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4861\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/4863"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}