{"id":920,"date":"2017-09-09T11:23:09","date_gmt":"2017-09-09T03:23:09","guid":{"rendered":"http:\/\/www.5x44.cn\/?p=920"},"modified":"2017-09-09T11:23:09","modified_gmt":"2017-09-09T03:23:09","slug":"samba%e9%aa%8c%e8%af%81%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.5x44.cn\/?p=920","title":{"rendered":"samba\u9a8c\u8bc1\u914d\u7f6e\u6587\u4ef6"},"content":{"rendered":"<p>\u5728samba\u914d\u7f6e\u597d\u540e\u53ef\u4ee5\u7528<code>usr@host:~$testparm<\/code>\u9a8c\u8bc1\u5f53\u524d\u914d\u7f6e\u3002\u56e0\u4e3a\u6709\u4e00\u4e9b\u6ca1\u751f\u6548\u7684\u914d\u7f6e\u4e0d\u4f1a\u51fa\u73b0\u5728\u8fd9\u91cc\uff0c\u5982\u679c\u548c\u4f60\u6240\u60f3\u8981\u7684\u914d\u7f6e\u6709\u5dee\u522b\uff0c\u5728\u8fd9\u4e2a\u51fd\u6570\u7684\u8f93\u51fa\u5c31\u80fd\u770b\u5230\u3002\u5982\uff1a\u6211\u5728\u8bbe\u7f6e\u65e0\u5bc6\u7801\u8bbf\u95ee\u5171\u4eab\u8d44\u6e90\u65f6\u600e\u4e48\u8bbe\u7f6e\u90fd\u4e0d\u751f\u6548\uff0c\u540e\u6765\u53d1\u73b0\u662f<code>guest account = nobody<\/code>\u7684\u95ee\u9898\uff0c\u4e0d\u80fd\u8bbe\u7f6e\u6210nobody\uff0c\u540e\u6765\u6211\u6539\u6210\u522b\u7684\u7528\u6237\u5c31\u597d\u4f7f\u4e86\u3002<\/p>\n<pre>\r\nLoad smb config files from \/etc\/samba\/smb.conf\r\nrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)\r\nWARNING: The \"syslog\" option is deprecated\r\nProcessing section \"[printers]\"\r\nProcessing section \"[share]\"\r\nLoaded services file OK.\r\nServer role: ROLE_STANDALONE\r\n\r\nPress enter to see a dump of your service definitions\r\n\r\n# Global parameters\r\n[global]\r\n\tserver string = %h server (Samba, Ubuntu)\r\n\tserver role = standalone server\r\n\tsecurity = USER   #\u5f88\u591a\u6587\u7ae0\u90fd\u8bf4\u8fd9\u91cc\u8981\u8bbe\u7f6e\u6210share\u624d\u80fd\u5b8c\u6210\u65e0\u5bc6\u7801\u8bbf\u95ee\uff0c\u4f46share\u8fd9\u4e2a\u53c2\u6570\u5728\u6211\u4f7f\u7528\u7684Version 4.3.11-Ubuntu\u7248\u672c\u4e2d\u5df2\u7ecf\u53d6\u6d88\u4e86\u3002\r\n\tmap to guest = Bad User\r\n\tobey pam restrictions = Yes\r\n\tguest account = wanglei\r\n\tpam password change = Yes\r\n\tpasswd program = \/usr\/bin\/passwd %u\r\n\tpasswd chat = *Enter\\snew\\s*\\spassword:* %n\\n *Retype\\snew\\s*\\spassword:* %n\\n *password\\supdated\\ssuccessfully* .\r\n\tunix password sync = Yes\r\n\tsyslog = 0\r\n\tlog file = \/var\/log\/samba\/log.%m\r\n\tmax log size = 1000\r\n\tdns proxy = No\r\n\tusershare allow guests = Yes\r\n\tpanic action = \/usr\/share\/samba\/panic-action %d\r\n\tidmap config * : backend = tdb   #\u65b0\u7248\u672c\u4e2d\u5e76\u4e0d\u4f7f\u7528smbpasswd\u6587\u4ef6\u5b58\u653esamba\u7528\u6237\uff0c\u800c\u662f\u7528\u6570\u636e\u5e93\u5b58\uff0c\u60f3\u8981\u67e5\u770b\u7528\u54ea\u4e9b\u7528\u6237\u8981\u4f7f\u7528pdbedit -L\u8fd9\u4e2a\u547d\u4ee4\u8981\u6709super\u6743\u9650\u3002\r\n\r\n\r\n[printers]\r\n\tcomment = All Printers\r\n\tpath = \/var\/spool\/samba\r\n\tcreate mask = 0700\r\n\tprintable = Yes\r\n\tbrowseable = No\r\n\r\n\r\n[share]\r\n\tcomment = share files\r\n\tpath = \/mnt\/lvdir\/downloads\/share\r\n\tread only = No\r\n\tcreate mask = 0777\r\n\tguest only = Yes\r\n\tguest ok = Yes\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728samba\u914d\u7f6e\u597d\u540e\u53ef\u4ee5\u7528usr@host:~$testparm\u9a8c\u8bc1\u5f53\u524d\u914d\u7f6e\u3002\u56e0\u4e3a\u6709\u4e00\u4e9b\u6ca1\u751f\u6548\u7684\u914d\u7f6e\u4e0d\u4f1a\u51fa\u73b0\u5728\u8fd9\u91cc\uff0c\u5982\u679c\u548c\u4f60\u6240\u60f3\u8981\u7684\u914d\u7f6e\u6709\u5dee\u522b\uff0c\u5728\u8fd9\u4e2a\u51fd\u6570\u7684\u8f93\u51fa&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.5x44.cn\/?p=920\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-920","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=920"}],"version-history":[{"count":1,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions"}],"predecessor-version":[{"id":921,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/920\/revisions\/921"}],"wp:attachment":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}