{"id":1163,"date":"2012-05-11T21:47:41","date_gmt":"2012-05-11T13:47:41","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1163"},"modified":"2023-06-24T19:40:20","modified_gmt":"2023-06-24T19:40:20","slug":"how-to-install-and-configure-samba-swat-on-centos-5-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-samba-swat-on-centos-5-5\/","title":{"rendered":"How to Install and Configure Samba SWAT on CentOS 5.5"},"content":{"rendered":"<p>Samba SWAT (Samba Web Administration Tool) is a powerful tool that allows you to configure your Samba server via a web browser. This eliminates the need for command line configurations, making the process more accessible and manageable.<\/p>\n<p>In this guide, we will walk you through the steps to install and configure Samba SWAT on your CentOS 5.5 server. Before we begin, it&#8217;s important to note that you will need to install xinetd first, and then proceed to install Samba SWAT.<\/p>\n<p>If you&#8217;re interested in learning more about different web servers, you can check out this article on the <a href=\"https:\/\/webhostinggeeks.com\/best\/web-server\/\">best web servers<\/a>.<\/p>\n<h2>Step 1: Install xinetd<\/h2>\n<p>The first step in this process is to install xinetd. This can be done by running the following command:<\/p>\n<pre>\r\nyum -y install xinetd\r\n<\/pre>\n<p>This command will install xinetd on your server. You will see a series of messages as the system resolves dependencies, downloads the package, and completes the installation.<\/p>\n<pre>[root@server ~]# yum -y install xinetd\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * addons: ossm.utm.my\r\n * base: ossm.utm.my\r\n * epel: mirror01.idc.hinet.net\r\n * extras: ossm.utm.my\r\n * updates: ossm.utm.my\r\nSetting up Install Process\r\nResolving Dependencies\r\n--&gt; Running transaction check\r\n---&gt; Package xinetd.i386 2:2.3.14-10.el5 set to be updated\r\n--&gt; Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n==========================================================================================\r\n Package            Arch             Version                       Repository        Size\r\n==========================================================================================\r\nInstalling:\r\n xinetd             i386             2:2.3.14-10.el5               base             124 k\r\n\r\nTransaction Summary\r\n==========================================================================================\r\nInstall       1 Package(s)\r\nUpgrade       0 Package(s)\r\n\r\nTotal download size: 124 k\r\nDownloading Packages:\r\nxinetd-2.3.14-10.el5.i386.rpm                                      | 124 kB     00:02\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nFinished Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing     : xinetd                                                             1\/1\r\n\r\nInstalled:\r\n  xinetd.i386 2:2.3.14-10.el5\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 2: Start xinetd<\/h2>\n<p>After installing xinetd, you need to start it. This can be done by running the following command:<\/p>\n<pre>\r\n\/etc\/rc.d\/init.d\/xinetd start\r\n<\/pre>\n<p>You should see a message indicating that xinetd has started successfully.<\/p>\n<h2>Step 3: Install SWAT<\/h2>\n<p>With xinetd installed and running, you can now proceed to install Samba SWAT. This can be done by running the following command:<\/p>\n<pre>\r\nyum -y install samba-swat\r\n<\/pre>\n<p>This command will install Samba SWAT on your server. As with the installation of xinetd, you will see a series of messages as the system resolves dependencies, downloads the package, and completes the installation.<\/p>\n<pre>[root@server ~]# yum -y install samba-swat\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * addons: ossm.utm.my\r\n * base: ossm.utm.my\r\n * epel: mirror01.idc.hinet.net\r\n * extras: ossm.utm.my\r\n * updates: ossm.utm.my\r\nSetting up Install Process\r\nResolving Dependencies\r\n--&gt; Running transaction check\r\n---&gt; Package samba-swat.i386 0:3.0.33-3.29.el5_6.2 set to be updated\r\n--&gt; Processing Dependency: samba = 3.0.33-3.29.el5_6.2 for package: samba-swat\r\n--&gt; Running transaction check\r\n---&gt; Package samba.i386 0:3.0.33-3.29.el5_6.2 set to be updated\r\n--&gt; Processing Dependency: samba-common = 3.0.33-3.29.el5_6.2 for package: samba\r\n--&gt; Running transaction check\r\n---&gt; Package samba-common.i386 0:3.0.33-3.29.el5_6.2 set to be updated\r\n--&gt; Processing Dependency: libsmbclient = 3.0.33-3.29.el5_6.2 for package: samba-common\r\n--&gt; Running transaction check\r\n---&gt; Package libsmbclient.i386 0:3.0.33-3.29.el5_6.2 set to be updated\r\n--&gt; Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n==========================================================================================\r\n Package               Arch          Version                       Repository        Size\r\n==========================================================================================\r\nInstalling:\r\n samba-swat            i386          3.0.33-3.29.el5_6.2           updates          8.2 M\r\nInstalling for dependencies:\r\n samba                 i386          3.0.33-3.29.el5_6.2           updates           16 M\r\nUpdating for dependencies:\r\n libsmbclient          i386          3.0.33-3.29.el5_6.2           updates          908 k\r\n samba-common          i386          3.0.33-3.29.el5_6.2           updates          6.7 M\r\n\r\nTransaction Summary\r\n==========================================================================================\r\nInstall       2 Package(s)\r\nUpgrade       2 Package(s)\r\n\r\nTotal download size: 32 M\r\nDownloading Packages:\r\n(1\/4): libsmbclient-3.0.33-3.29.el5_6.2.i386.rpm                   | 908 kB     00:16\r\n(2\/4): samba-common-3.0.33-3.29.el5_6.2.i386.rpm                   | 6.7 MB     02:01\r\n(3\/4): samba-swat-3.0.33-3.29.el5_6.2.i386.rpm                     | 8.2 MB     02:28\r\n(4\/4): samba-3.0.33-3.29.el5_6.2.i386.rpm                          |  16 MB     05:11\r\n------------------------------------------------------------------------------------------\r\nTotal                                                      55 kB\/s |  32 MB     09:59\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nFinished Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Updating       : libsmbclient                                                       1\/6\r\n  Updating       : samba-common                                                       2\/6\r\n  Installing     : samba                                                              3\/6\r\n  Installing     : samba-swat                                                         4\/6\r\n  Cleanup        : libsmbclient                                                       5\/6\r\n  Cleanup        : samba-common                                                       6\/6\r\n\r\nInstalled:\r\n  samba-swat.i386 0:3.0.33-3.29.el5_6.2\r\n\r\nDependency Installed:\r\n  samba.i386 0:3.0.33-3.29.el5_6.2\r\n\r\nDependency Updated:\r\n  libsmbclient.i386 0:3.0.33-3.29.el5_6.2     samba-common.i386 0:3.0.33-3.29.el5_6.2\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 4: Configure SWAT<\/h2>\n<p>After installing Samba SWAT, you need to configure it. This involves editing a configuration file. You can do this by running the following command:<\/p>\n<pre>\r\nvi \/etc\/xinetd.d\/swat\r\n<\/pre>\n<p>In the configuration file, you need to change lines 10 and 14. The configuration should look like this:<\/p>\n<pre>\r\n# default: off\r\n# description: SWAT is the Samba Web Admin Tool. Use swat \\\\\r\n# to configure your Samba server. To use SWAT, \\\\\r\n# connect to port 901 with your favorite web browser.\r\nservice swat\r\n{\r\n port = 901\r\n socket_type = stream\r\n wait = no\r\n only_from = 127.0.0.1 192.168.2.0\/16\r\n user = root\r\n server = \/usr\/sbin\/swat\r\n log_on_failure += USERID\r\n disable = no\r\n}\r\n<\/pre>\n<h2>Step 5: Restart xinetd<\/h2>\n<p>After configuring Samba SWAT, you need to restart xinetd for the changes to take effect. This can be done by running the following command:<\/p>\n<pre>\r\n\/etc\/rc.d\/init.d\/xinetd restart\r\n<\/pre>\n<p>You should see a message indicating that xinetd has restarted successfully.<\/p>\n<pre class=\"code\">[root@server ~]# \/etc\/rc.d\/init.d\/xinetd restart\r\nStopping xinetd:                                           [  OK  ]\r\nStarting xinetd:                                           [  OK  ]\r\n<\/pre>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">yum -y install xinetd<\/span> \u2013 This command installs xinetd on your server.<\/li>\n<li><span class=\"fw-bold\">\/etc\/rc.d\/init.d\/xinetd start<\/span> \u2013 This command starts xinetd.<\/li>\n<li><span class=\"fw-bold\">yum -y install samba-swat<\/span> \u2013 This command installsSamba SWAT on your server.<\/li>\n<li><span class=\"fw-bold\">vi \/etc\/xinetd.d\/swat<\/span> \u2013 This command opens the SWAT configuration file for editing.<\/li>\n<li><span class=\"fw-bold\">\/etc\/rc.d\/init.d\/xinetd restart<\/span> \u2013 This command restarts xinetd.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have walked through the process of installing and configuring Samba SWAT on a CentOS 5.5 server. By following these steps, you can easily set up and manage your Samba server without having to deal with command line configurations.<\/p>\n<p>Remember, before you can install Samba SWAT, you need to install xinetd first. Once both are installed, you can configure Samba SWAT and restart xinetd to apply the changes.<\/p>\n<p>If you&#8217;re interested in learning more about different types of servers, you can check out these articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <ahref=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>. For more information on different hosting options, you can read about <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated servers<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS servers<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a>.<\/p>\n<p>Remember, the key to successful server management is understanding the tools at your disposal and how to use them effectively. Samba SWAT is one such tool that can make the task of managing your Samba server much easier. Happy server managing!<\/p>\n<h2>FAQs<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is Samba SWAT?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Samba SWAT (Samba Web Administration Tool) is a user-friendly tool that allows you to configure your Samba server via a web browser, eliminating the need for command line configurations.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why do I need to install xinetd before installing Samba SWAT?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">xinetd is a super-server daemon that provides access control, logging, and other features, and is required for Samba SWAT to function correctly.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How do I start xinetd?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">You can start xinetd by running the command &#8216;\/etc\/rc.d\/init.d\/xinetd start&#8217; on your server.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What changes do I need to make in the SWAT configuration file?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">In the SWAT configuration file, you need to change lines 10 and 14 to configure the &#8216;only_from&#8217; and &#8216;server&#8217; parameters, respectively.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How do I restart xinetd?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">You can restart xinetd by running the command &#8216;\/etc\/rc.d\/init.d\/xinetd restart&#8217; on your server.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Samba SWAT (Samba Web Administration Tool) is a powerful tool that allows you to configure your Samba server via a web browser. This eliminates the need for command line configurations,&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1043],"tags":[1246,1375,1536,1733,1819],"class_list":["post-1163","post","type-post","status-publish","format-standard","hentry","category-samba","tag-centos-5-5","tag-file-server","tag-linux","tag-samba","tag-swat"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1163","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=1163"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1163\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}