{"id":8,"date":"2004-11-21T23:30:41","date_gmt":"2004-11-22T07:30:41","guid":{"rendered":"http:\/\/hongyu.org\/wordpress\/?p=8"},"modified":"2006-07-23T17:07:34","modified_gmt":"2006-07-24T01:07:34","slug":"samba-set-up","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=8","title":{"rendered":"Samba set up"},"content":{"rendered":"\n<li>Linux side:<\/li>\n<p>Started with the initial Samba configuration file \/etc\/samba\/smb.conf, here are a few important lines that I modified or turned on:<\/p>\n<p>   workgroup = workgroup  #change workgroup to my own home network name here<\/p>\n<p>   security = share # I need to include printer, and found security=user could add complexity to an occasional guest computers.<\/p>\n<p>   encrypt password = YES<br \/>\n   samba password file =\/etc\/samba\/smbpasswd <\/p>\n<p>Then I add my username to my samba password file<br \/>\n    $ smbpasswd -a myusername<\/p>\n<p>Restart the samba daemon<br \/>\n    $ \/etc\/init.d\/smb restart<\/p>\n<p>Turn off the firewall:<br \/>\n    $ \/etc\/init.d\/iptables stop<\/p>\n<p>In fact, one just needs to open a few ports instead of turning off the entire firewall, but here is just a simple solution if the computers are safely isolated from the internet by a router.<\/p>\n<li>windows side<\/li>\n<p>Click &#8220;My  Network Places&#8221; -> &#8220;Set up a home or small office network&#8221;, and a set up window will appear. Just go through the rest steps following the question in the window. An early mistake that I&#8217;ve ever made before is when it asked &#8220;Select the statement that best describe the computer&#8221;, I chose the first one, i.e., directly connect to the network. In fact, the correct one shoud be the second, i.e., the computer is connected to another computer or gateway in my case, because indeed my computer is connected to my wireless router, which effectively is a small computer.<\/p>\n<p>Finally, clicking &#8220;My  Network Places&#8221; will show the samba server. Clicking the server will prompt you a username and password, which is the username and password that you added in the previous Linux side step. <\/p>\n<p>I was also trying to set up access of my Linux machine to the Windows machine, but found XP SP2 firewall is blocking access. So I didn&#8217;t bother to try more.<\/p>\n<p>Here is the final set up (output of testparm)<\/p>\n<p># Global parameters<br \/>\n[global]<br \/>\n        workgroup = HOLLYWOOD<br \/>\n        server string = Samba Server<br \/>\n        security = SHARE<br \/>\n        log file = \/var\/log\/samba\/%m.log<br \/>\n        max log size = 50<br \/>\n        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192<br \/>\n        printcap name = \/etc\/printcap<br \/>\n        dns proxy = No<br \/>\n        idmap uid = 16777216-33554431<br \/>\n        idmap gid = 16777216-33554431<br \/>\n        cups options = raw<\/p>\n<p>[homes]<br \/>\n        comment = Home Directories<br \/>\n        read only = No<br \/>\n        browseable = No<\/p>\n<p>[printers]<br \/>\n        comment = All Printers<br \/>\n        path = \/var\/spool\/samba<br \/>\n        guest ok = Yes<br \/>\n        printable = Yes<br \/>\n        browseable = No<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux side: Started with the initial Samba configuration file \/etc\/samba\/smb.conf, here are a few important lines that I modified or turned on: workgroup = workgroup #change workgroup to my own home network name here security = share # I need to include printer, and found security=user could add complexity to an occasional guest computers. encrypt &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hongyu.org\/wordpress\/?p=8\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Samba set up&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":0,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}