{"id":379,"date":"2016-12-14T05:25:11","date_gmt":"2016-12-14T05:25:11","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=379"},"modified":"2016-12-17T04:40:43","modified_gmt":"2016-12-17T04:40:43","slug":"install-and-configure-samba-file-server","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=379","title":{"rendered":"Install and configure Samba File Server"},"content":{"rendered":"<p>Samba is an Open Source, free files server available for Linux OS. Its installtion is very simple, and has even high end features such as making it work similar to PDC in Windows for authentication.<\/p>\n<p>In this document we will work on configuring a basic settings just o share a folder to Windows client systems.<\/p>\n<p>&nbsp;<\/p>\n<p>]# <em><strong>yum install samba<\/strong><\/em><br \/>\n]# <em><strong>useradd\u00a0john<\/strong><\/em><br \/>\n]# <em><strong>passwd <em><strong>john<\/strong><\/em><\/strong><\/em><br \/>\n]# <em><strong>systemctl start smb<\/strong><\/em><br \/>\n]# <em><strong>smbpasswd -a <em><strong>john<\/strong><\/em><\/strong><\/em><br \/>\n]# <em><strong>cp \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.orig<\/strong><\/em><br \/>\n]# <em><strong>vi \/etc\/samba\/smb.conf<\/strong><\/em><br \/>\nAdd the following at the end<\/p>\n<p><em>[data]<br \/>\npath = \/data<br \/>\nread only = No<br \/>\nguest ok = No<br \/>\nvalid users = harryd<br \/>\nbrowsable = yes<\/em><\/p>\n<p>]#<em><strong> mkdir \/data\u00a0\u00a0 \u00a0<\/strong><\/em><br \/>\n]# <em><strong>chmod 777 \/data\/<\/strong><\/em><\/p>\n<p>It may be better to disable SElinux<\/p>\n<p>]# <em><strong>systemctl restart smb<\/strong><\/em><\/p>\n<p>======================== ==========<\/p>\n<ul>\n<li><strong><span style=\"text-decoration: underline;\">Test<\/span><\/strong><br \/>\nNow run the following command in a Windows client host<br \/>\n\\\\&lt;ip address of the server&gt;<br \/>\nThe username should be &#8220;\\<em><strong>john<\/strong><\/em>&#8220;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Samba is an Open Source, free files server available for Linux OS. Its installtion is very simple, and has even high end features such as <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=379\" title=\"Install and configure Samba File Server\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":381,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,19],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-samba"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=379"}],"version-history":[{"count":2,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":383,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions\/383"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/381"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}