{"id":507,"date":"2015-03-15T08:38:50","date_gmt":"2015-03-15T00:38:50","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=507"},"modified":"2015-03-15T08:41:02","modified_gmt":"2015-03-15T00:41:02","slug":"centos%e9%85%8d%e7%bd%aesamba%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/507.html","title":{"rendered":"CentOS\u914d\u7f6esamba\u670d\u52a1"},"content":{"rendered":"<p>\u7b2c\u4e00\u6b65\uff0c\u5b89\u88c5samba\u670d\u52a1\uff0c\u547d\u4ee4\uff1a<span style=\"color: #ff0000;\"><strong>yum install samba<\/strong><\/span><br \/>\n\u7b2c\u4e8c\u6b65\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1a<strong><span style=\"color: #ff0000;\">vim \/etc\/samba\/smb.conf<\/span><\/strong>\uff1b\uff08\u63d0\u9192\u4e0b\u4fee\u6539\u67d0\u4e2a\u6587\u4ef6\u65f6\u6700\u597d\u5148\u5907\u4efd\u4e0b\uff0c\u8fd9\u662f\u4e2a\u4e0d\u9519\u7684\u4e60\u60ef\uff09\u628a[homes]\u548c[privnters]\u7b49\u90fd\u6ce8\u91ca\u6389\uff08\u4e5f\u5c31\u662f\u628a======Share Definitions========\u4e0b\u9762\u7684\u7684 \u8bed\u53e5\u5168\u6ce8\u91ca\u6389\uff09\u7136\u540e\u6dfb\u52a0\u4e0b\u9762\u51e0\u884c\uff1a<\/p>\n<p>#============================ Share Definitions ==============================<br \/>\n<strong><span style=\"color: #ff0000;\">[share]<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> comment = share \/\/ \u5171\u4eab\u7684\u6587\u4ef6\u5939<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> path = \/home\/share \/\/ \u5171\u4eab\u6587\u4ef6\u7684\u76ee\u5f55<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> public = yes \/\/ \u662f\u5426\u516c\u5171\u5c5e\u6027<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> writable = yes<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> browseable=yes<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> available=yes<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> guest ok=yes<\/span> <\/strong><br \/>\n\u4e0a\u9762\u662f\u8bbe\u7f6e\u5171\u4eab\u76ee\u5f55\uff0c\u63a5\u4e0b\u6765\u8bbe\u7f6e\u4e0b\u767b\u5f55\u7528\u6237\u548c\u6743\u9650\u3002 <span style=\"color: #ff0000;\"><strong>\u4e5f\u53ef\u4ee5\u4e0d\u7528\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u76f4\u63a5\u7528\u81ea\u5e26\u7684\u6848\u4f8b[public];<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong># security = user \/\/ \u6ce8\u91ca\u6389\u539f\u6765\u7684user<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"><strong> security = share \/\/ \u53d8\u6210\u5171\u4eab\u7684<\/strong><\/span><\/p>\n<p>\u7b2c\u4e09\u6b65\uff0c\u542f\u52a8\u670d\u52a1\u3002\u5173\u95ed\u9632\u706b\u5899\uff1aservice iptables stop\uff1b\u8bbe\u7f6eSELinux\uff1asetenforce 0\uff1b\u91cd\u542fsmb\u670d\u52a1\uff1aservice smb restart\uff1b<br \/>\n\u7b2c\u56db\u6b65\uff0c\u6d4b\u8bd5\uff1awin+r ==&gt;&gt; \\\\192.168.10.150<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65\uff0c\u5b89\u88c5samba\u670d\u52a1\uff0c\u547d\u4ee4\uff1ayum install samba \u7b2c\u4e8c\u6b65\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1avim \/etc\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-507","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":1309,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}