{"id":2561,"date":"2023-11-18T11:00:20","date_gmt":"2023-11-18T03:00:20","guid":{"rendered":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=2561"},"modified":"2023-11-18T11:03:48","modified_gmt":"2023-11-18T03:03:48","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%88raspberry-pi-os%ef%bc%89%e6%90%ad%e5%bb%ba-samba-%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2023\/11\/18\/%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%88raspberry-pi-os%ef%bc%89%e6%90%ad%e5%bb%ba-samba-%e6%9c%8d%e5%8a%a1\/","title":{"rendered":"\u6811\u8393\u6d3e\uff08Raspberry Pi OS\uff09\u642d\u5efa samba \u670d\u52a1"},"content":{"rendered":"\n<p>\u6700\u8fd1\u91cd\u65b0\u642d\u5efa\u4e86\u4e00\u5957\u6811\u8393\u6d3e\u7684\u7cfb\u7edf\uff08Bullseye\uff0carm64\uff09\uff0c\u5c06\u8001\u7cfb\u7edf\u7684\u79fb\u52a8\u786c\u76d8\u6302\u8f7d\u5728\u65b0\u7cfb\u7edf\uff0c\u7136\u540e\u542f\u7528 samba \u670d\u52a1\u4f5c\u4e3a\u4e00\u4e2a\u7b80\u6613\u7684 NAS \u4f7f\u7528 \u3002\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\uff0c\u4e0d\u8fc7\u4e0e\u4ee5\u524d\u8001\u7cfb\u7edf\u642d\u5efa\u65f6\u6709\u4e00\u70b9\u5dee\u522b\uff0c\u7b80\u8981\u8bb0\u5f55\u4e00\u4e0b\u4ee5\u5907\u4ee5\u540e\u67e5\u9605\u3002<\/p>\n\n\n\n<p>Pi \u6302\u8f7d\u4e86\u79fb\u52a8\u786c\u76d8\u4e24\u4e2a\u5206\u533a\uff1a\uff081\uff09\/media\/pi\/uwork\uff1b\u4ee5\u53ca\uff082\uff09\/media\/pi\/udoc\uff0c\u5c06\u5206\u522b\u5bf9\u5e94\u5728 samba \u4e2d\u914d\u7f6e\u7684\u4e24\u4e2a\u8bbf\u95ee\u76ee\u5f55\uff1a\uff081\uff09\/raspberrypi\/hdd_work\uff0c\u4ee5\u53ca\uff082\uff09\/raspberrypi\/hdd_docs\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5 samba<\/h2>\n\n\n\n<p>\u76f4\u63a5 apt \u5b89\u88c5\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install samba<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u914d\u7f6e<\/h2>\n\n\n\n<p>\u9ed8\u8ba4\u7528\u6237\u662f pi\uff0c\u7cfb\u7edf\u867d\u7136\u5df2\u7ecf\u6709\u8fd9\u4e2a\u7528\u6237\u4e86\uff0c\u4f46\u662f samba \u4e2d\u8fd8\u662f\u9700\u8981\u5355\u72ec\u521b\u5efa\u4e00\u4e2a pi \u7528\u6237\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo smbpasswd -a pi<\/pre>\n\n\n\n<p>\u5efa\u8bae\u8bbf\u95ee\u5bc6\u7801\u8bbe\u7f6e\u6210\u548c\u7cfb\u7edf\u767b\u5f55\u5bc6\u7801\u4e00\u6837\u5373\u53ef\u3002\u7136\u540e\u4fee\u6539 \/etc\/samba\/smb.conf \u6587\u4ef6\uff0c\u589e\u52a0\u4ee5\u4e0b\u7247\u6bb5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[hdd_work]\ncomment = work directory\npath = \/media\/pi\/uwork\nbrowseable = yes\nwritable = yes\ncreate mask = 0777\ndirectory mask = 0777\nvalid users = pi\n\n[hdd_docs]\ncomment = document directory\npath = \/media\/pi\/udoc\nbrowseable = yes\nwritable = yes\ncreate mask = 0777\ndirecory mask = 0777\nvalid users = pi<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u542f\u52a8\uff08\u91cd\u542f\uff09 samba \u670d\u52a1<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl restart smbd<\/pre>\n\n\n\n<p>\u67e5\u8be2 samba \u7684\u72b6\u6001\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status smbd<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u91cd\u65b0\u642d\u5efa\u4e86\u4e00\u5957\u6811\u8393\u6d3e\u7684\u7cfb\u7edf\uff08Bullseye\uff0carm64\uff09\uff0c\u5c06\u8001\u7cfb\u7edf\u7684\u79fb\u52a8\u786c\u76d8\u6302\u8f7d\u5728\u65b0\u7cfb\u7edf\uff0c\u7136\u540e\u542f\u7528 samba \u670d\u52a1\u4f5c\u4e3a\u4e00\u4e2a\u7b80\u6613\u7684 NAS \u4f7f\u7528 \u3002\u8fc7\u7a0b\u975e&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2023\/11\/18\/%e6%a0%91%e8%8e%93%e6%b4%be%ef%bc%88raspberry-pi-os%ef%bc%89%e6%90%ad%e5%bb%ba-samba-%e6%9c%8d%e5%8a%a1\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[822,742,307,33,878],"class_list":["post-2561","post","type-post","status-publish","format-standard","hentry","category-53","tag-bullseye","tag-nas","tag-pi","tag-samba","tag-smbd"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=2561"}],"version-history":[{"count":2,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2561\/revisions"}],"predecessor-version":[{"id":2563,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/2561\/revisions\/2563"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=2561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=2561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=2561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}