{"id":247,"date":"2015-07-06T11:21:01","date_gmt":"2015-07-06T11:21:01","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=247"},"modified":"2019-01-26T03:42:07","modified_gmt":"2019-01-26T03:42:07","slug":"samba-file-share-service","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=247","title":{"rendered":"Samba File Share Service"},"content":{"rendered":"<p><strong>Install and start samba server:<\/strong><\/p>\n<p># yum install samba<\/p>\n<p># service smb start<\/p>\n<p># chkconfig smb on<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Add users and group:<\/strong><\/p>\n<p># useradd user01<\/p>\n<p># passwd user01<\/p>\n<p># useradd user02<\/p>\n<p># passwd user02<\/p>\n<p># groupadd testusers<\/p>\n<p>Add both users in the group testusers<\/p>\n<p># smbpasswd -a user01<\/p>\n<p># smbpasswd -a user02<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Create a folder to be shared:<\/strong><\/p>\n<p># mkdir \/shared_folder<\/p>\n<p># chown root.testusers \/shared_folder<\/p>\n<p>&nbsp;<\/p>\n<p># mkdir \/shared_folder\/user01<\/p>\n<p># chown user01.testusers \/shared_folder\/user01<\/p>\n<p>&nbsp;<\/p>\n<p># mkdir \/shared_folder\/user02<\/p>\n<p># chown user02.testusers \/shared_folder\/user02<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Add the follwing in a default samba configuration file \/etc\/samba\/smb.conf : <\/strong><\/p>\n<p>[shared_folder]<br \/>\ncomment = Shared Folder<br \/>\npath = \/shared_folder\/%U<br \/>\nwritable = yes<br \/>\nguest ok = no<\/p>\n<p>&nbsp;<\/p>\n<p>Test the configuration:<\/p>\n<p># service smb restart<\/p>\n<p>Go to the windows client machine and click on Start &#8211;&gt; Run &#8211;&gt; Now type &#8220;\\\\&lt;ip address of samba server&gt;&#8221;<\/p>\n<p>You should get a login box.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Install and start samba server: # yum install samba # service smb start # chkconfig smb on &nbsp; Add users and group: # useradd user01 <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=247\" title=\"Samba File Share Service\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":252,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,19],"tags":[],"class_list":["post-247","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\/247","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=247"}],"version-history":[{"count":1,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":248,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/248"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}