{"id":54438,"date":"2025-08-13T07:00:19","date_gmt":"2025-08-12T23:00:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/54438.html"},"modified":"2025-08-13T07:00:19","modified_gmt":"2025-08-12T23:00:19","slug":"%e5%ae%9e%e6%88%98%ef%bc%9a%e5%9c%a8-centos-7-%e4%b8%8a%e6%90%ad%e5%bb%ba-smb-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e5%ae%9e%e7%8e%b0%e5%a4%9a%e5%b9%b3%e5%8f%b0%e6%96%87%e4%bb%b6%e5%85%b1%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/54438.html","title":{"rendered":"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09"},"content":{"rendered":"<h3>\u4ec0\u4e48\u662f SMB&#xff1f;\u4e3a\u4ec0\u4e48\u9009\u5b83&#xff1f;<\/h3>\n<p>\u5148\u7b80\u5355\u79d1\u666e\u4e0b&#xff0c;SMB&#xff08;Server Message Block&#xff09;\u00a0\u662f\u4e00\u79cd\u7f51\u7edc\u6587\u4ef6\u5171\u4eab\u534f\u8bae&#xff0c;\u6700\u5f00\u59cb\u662f\u5fae\u8f6f\u4e3a Windows \u7cfb\u7edf\u5f00\u53d1\u7684&#xff0c;\u540e\u6765\u88ab\u5e7f\u6cdb\u652f\u6301\u3002\u7b80\u5355\u8bf4&#xff0c;\u5b83\u80fd\u8ba9\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u5907\u5728\u5c40\u57df\u7f51\u5185\u50cf\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u4e00\u6837\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5171\u4eab\u76ee\u5f55\u3002<\/p>\n<p>\u9009\u62e9 SMB \u7684\u6838\u5fc3\u539f\u56e0&#xff1a;<\/p>\n<ul>\n<li>\u517c\u5bb9\u6027\u5f3a&#xff1a;Windows \u539f\u751f\u652f\u6301&#xff0c;Mac \u548c Linux \u4e5f\u80fd\u8f7b\u677e\u5bf9\u63a5&#xff0c;\u4e0d\u7528\u7ed9\u4e0d\u540c\u7cfb\u7edf\u7684\u7528\u6237\u5355\u72ec\u57f9\u8bad<\/li>\n<li>\u914d\u7f6e\u76f8\u5bf9\u7b80\u5355&#xff1a;\u76f8\u6bd4 NFS \u7684\u590d\u6742\u6743\u9650\u7ba1\u7406&#xff0c;SMB \u5bf9\u65b0\u624b\u66f4\u53cb\u597d<\/li>\n<li>\u529f\u80fd\u5168\u9762&#xff1a;\u652f\u6301\u7528\u6237\u8ba4\u8bc1\u3001\u6743\u9650\u63a7\u5236\u3001\u6587\u4ef6\u9501\u7b49&#xff0c;\u6ee1\u8db3\u56e2\u961f\u5171\u4eab\u7684\u57fa\u672c\u9700\u6c42<\/li>\n<\/ul>\n<h3>\u73af\u5883\u51c6\u5907\u4e0e\u57fa\u7840\u5b89\u88c5<\/h3>\n<p>\u6211\u7528\u7684\u670d\u52a1\u5668\u662fCentOS 7.9&#xff0c;\u914d\u7f6e 4 \u6838 8G \u5185\u5b58 &#043; 500G \u786c\u76d8&#xff0c;\u5bf9\u4e8e\u51e0\u5341\u4eba\u7684\u5c0f\u56e2\u961f\u5b8c\u5168\u591f\u7528\u3002<\/p>\n<h4>\u5b89\u88c5 Samba \u670d\u52a1<\/h4>\n<p>Samba \u662f Linux \u7cfb\u7edf\u4e0a\u5b9e\u73b0 SMB \u534f\u8bae\u7684\u5de5\u5177\u5305&#xff0c;\u76f4\u63a5\u7528 yum \u5b89\u88c5\u5373\u53ef&#xff1a;<\/p>\n<p># \u5148\u66f4\u65b0\u7cfb\u7edf\u5305<br \/>\nyum update -y<br \/>\n# \u5b89\u88c5Samba\u4e3b\u7a0b\u5e8f\u3001\u5ba2\u6237\u7aef\u548c\u901a\u7528\u5de5\u5177<br \/>\nyum install -y samba samba-client samba-common<\/p>\n<h4>\u542f\u52a8\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/h4>\n<p>systemctl start smb    # \u542f\u52a8SMB\u670d\u52a1<br \/>\nsystemctl start nmb    # \u542f\u52a8NetBIOS\u540d\u79f0\u670d\u52a1&#xff08;\u7528\u4e8e\u7f51\u7edc\u53d1\u73b0&#xff0c;\u5f88\u91cd\u8981&#xff01;&#xff09;<br \/>\nsystemctl enable smb   # \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<br \/>\nsystemctl enable nmb<\/p>\n<p>\u8fd9\u91cc\u63d2\u4e00\u53e5&#xff1a;\u5f88\u591a\u4eba\u5bb9\u6613\u6f0f\u6389nmb\u670d\u52a1&#xff0c;\u867d\u7136\u4e0d\u662f\u5fc5\u987b\u7684&#xff0c;\u4f46\u542f\u52a8\u540e\u5176\u4ed6\u8bbe\u5907\u80fd\u5728 &#034;\u7f51\u7edc\u90bb\u5c45&#034; \u91cc\u76f4\u63a5\u770b\u5230\u670d\u52a1\u5668&#xff0c;\u7528\u8d77\u6765\u65b9\u4fbf\u5f88\u591a\u3002<\/p>\n<h3>Samba \u914d\u7f6e\u6587\u4ef6\u8be6\u89e3<\/h3>\n<p>Samba \u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u662f\/etc\/samba\/smb.conf&#xff0c;\u5efa\u8bae\u5148\u5907\u4efd\u518d\u4fee\u6539&#xff1a;<\/p>\n<p>cp \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.bak<\/p>\n<p>\u914d\u7f6e\u6587\u4ef6\u5206\u4e24\u90e8\u5206&#xff1a;\u5168\u5c40\u914d\u7f6e\u548c\u5171\u4eab\u76ee\u5f55\u914d\u7f6e&#xff0c;\u4e0b\u9762\u662f\u6211\u5b9e\u6218\u8fc7\u7684\u53ef\u7528\u914d\u7f6e\u3002<\/p>\n<h4 style=\"background-color:transparent\">\u5168\u5c40\u914d\u7f6e<\/h4>\n<p>[global]<br \/>\nworkgroup &#061; WORKGROUP       # \u5de5\u4f5c\u7ec4\u540d\u79f0&#xff0c;Windows\u9ed8\u8ba4\u662fWORKGROUP<br \/>\nserver string &#061; File Server # \u670d\u52a1\u5668\u63cf\u8ff0&#xff0c;\u968f\u4fbf\u8d77<br \/>\nnetbios name &#061; FILESERVER   # \u7f51\u7edc\u53ef\u89c1\u7684\u670d\u52a1\u5668\u540d<br \/>\nsecurity &#061; user             # \u8ba4\u8bc1\u6a21\u5f0f&#xff1a;\u7528\u6237\u5bc6\u7801\u8ba4\u8bc1&#xff08;\u6700\u5e38\u7528&#xff09;<br \/>\nmap to guest &#061; bad user     # \u672a\u77e5\u7528\u6237\u6620\u5c04\u4e3a\u8bbf\u5ba2<br \/>\ndns proxy &#061; no              # \u5173\u95edDNS\u4ee3\u7406<br \/>\nlog file &#061; \/var\/log\/samba\/log.%m  # \u65e5\u5fd7\u6587\u4ef6\u8def\u5f84&#xff0c;%m\u8868\u793a\u5ba2\u6237\u7aef\u4e3b\u673a\u540d<br \/>\nmax log size &#061; 1000         # \u65e5\u5fd7\u6700\u59271000KB<br \/>\nserver role &#061; standalone server  # \u72ec\u7acb\u670d\u52a1\u5668\u6a21\u5f0f<br \/>\npassdb backend &#061; tdbsam     # \u5bc6\u7801\u6570\u636e\u5e93\u7c7b\u578b<\/p>\n<p>\u5173\u952e\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>security &#061; user&#xff1a;\u5fc5\u987b\u9a8c\u8bc1\u7528\u6237\u540d\u5bc6\u7801\u624d\u80fd\u8bbf\u95ee<\/li>\n<li>map to guest &#061; bad user&#xff1a;\u5f53\u8f93\u5165\u4e0d\u5b58\u5728\u7684\u7528\u6237\u540d\u65f6&#xff0c;\u81ea\u52a8\u4f5c\u4e3a\u8bbf\u5ba2\u767b\u5f55&#xff08;\u9002\u5408\u516c\u5171\u76ee\u5f55&#xff09;<\/li>\n<\/ul>\n<h4>\u5171\u4eab\u76ee\u5f55\u914d\u7f6e<\/h4>\n<p>\u6211\u521b\u5efa\u4e86 3 \u4e2a\u4e0d\u540c\u7528\u9014\u7684\u5171\u4eab\u76ee\u5f55&#xff0c;\u5206\u522b\u5bf9\u5e94 &#034;\u516c\u5171\u8bfb\u5199&#034;\u3001&#034;\u79c1\u6709\u8bbf\u95ee&#034; \u548c &#034;\u533f\u540d\u4e0a\u4f20&#034; \u573a\u666f&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8c03\u6574\u3002<\/p>\n<h5>1. \u5148\u521b\u5efa\u76ee\u5f55\u5e76\u8bbe\u7f6e\u6743\u9650<\/h5>\n<p># \u521b\u5efa\u76ee\u5f55<br \/>\nmkdir -p \/srv\/samba\/public   # \u516c\u5171\u76ee\u5f55<br \/>\nmkdir -p \/srv\/samba\/private  # \u79c1\u6709\u76ee\u5f55&#xff08;\u4ec5\u6307\u5b9a\u7528\u6237\u8bbf\u95ee&#xff09;<br \/>\nmkdir -p \/srv\/samba\/upload   # \u4e0a\u4f20\u76ee\u5f55&#xff08;\u6240\u6709\u4eba\u53ef\u5199&#xff09;<\/p>\n<p># \u8bbe\u7f6e\u6743\u9650&#xff08;\u91cd\u8981&#xff01;\u5426\u5219\u53ef\u80fd\u51fa\u73b0\u8bbf\u95ee\u6743\u9650\u95ee\u9898&#xff09;<br \/>\nchmod 755 \/srv\/samba\/public   # \u8bfb\u6743\u9650\u5f00\u653e&#xff0c;\u5199\u6743\u9650\u4ec5\u5c5e\u4e3b<br \/>\nchmod 750 \/srv\/samba\/private  # \u4ec5\u5c5e\u4e3b\u548c\u7ec4\u5185\u7528\u6237\u53ef\u8bbf\u95ee<br \/>\nchmod 777 \/srv\/samba\/upload   # \u6240\u6709\u4eba\u53ef\u8bfb\u5199&#xff08;\u9002\u5408\u4e34\u65f6\u4e0a\u4f20&#xff09;<\/p>\n<h5>2. \u5728 smb.conf \u4e2d\u6dfb\u52a0\u5171\u4eab\u914d\u7f6e<\/h5>\n<p># \u516c\u5171\u5171\u4eab&#xff08;\u4efb\u4f55\u4eba\u53ef\u8bbf\u95ee&#xff0c;\u53ef\u8bfb\u5199&#xff09;<br \/>\n[public]<br \/>\ncomment &#061; Public Share      # \u5171\u4eab\u63cf\u8ff0<br \/>\npath &#061; \/srv\/samba\/public    # \u5b9e\u9645\u76ee\u5f55\u8def\u5f84<br \/>\nbrowseable &#061; yes            # \u5728\u7f51\u7edc\u4e2d\u53ef\u89c1<br \/>\nwritable &#061; yes              # \u5141\u8bb8\u5199\u5165<br \/>\nguest ok &#061; yes              # \u5141\u8bb8\u8bbf\u5ba2\u8bbf\u95ee<br \/>\ncreate mask &#061; 0644          # \u65b0\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650<br \/>\ndirectory mask &#061; 0755       # \u65b0\u76ee\u5f55\u9ed8\u8ba4\u6743\u9650<\/p>\n<p># \u79c1\u6709\u5171\u4eab&#xff08;\u4ec5\u6307\u5b9a\u7528\u6237\u53ef\u8bbf\u95ee&#xff09;<br \/>\n[private]<br \/>\ncomment &#061; Private Share<br \/>\npath &#061; \/srv\/samba\/private<br \/>\nbrowseable &#061; yes<br \/>\nwritable &#061; yes<br \/>\nguest ok &#061; no               # \u7981\u6b62\u8bbf\u5ba2\u8bbf\u95ee<br \/>\nvalid users &#061; smbuser1, smbuser2  # \u5141\u8bb8\u8bbf\u95ee\u7684\u7528\u6237<br \/>\ncreate mask &#061; 0640<br \/>\ndirectory mask &#061; 0750<\/p>\n<p># \u4e0a\u4f20\u76ee\u5f55&#xff08;\u533f\u540d\u53ef\u4e0a\u4f20&#xff0c;\u9002\u5408\u4e34\u65f6\u6587\u4ef6\u4ea4\u6362&#xff09;<br \/>\n[upload]<br \/>\ncomment &#061; Upload Directory<br \/>\npath &#061; \/srv\/samba\/upload<br \/>\nbrowseable &#061; yes<br \/>\nwritable &#061; yes<br \/>\nguest ok &#061; yes<br \/>\ncreate mask &#061; 0666<br \/>\ndirectory mask &#061; 0777<\/p>\n<p>\u914d\u7f6e\u5b8c\u540e\u7528testparm\u547d\u4ee4\u68c0\u67e5\u8bed\u6cd5\u662f\u5426\u6b63\u786e&#xff0c;\u6709\u9519\u8bef\u4f1a\u63d0\u793a\u5177\u4f53\u4f4d\u7f6e\u3002<\/p>\n<h3>\u7528\u6237\u7ba1\u7406&#xff1a;Samba \u7528\u6237\u4e0e\u7cfb\u7edf\u7528\u6237\u7684\u533a\u522b<\/h3>\n<p>Samba \u7684\u7528\u6237\u7ba1\u7406\u6709\u70b9\u7279\u6b8a&#xff1a;\u5fc5\u987b\u5148\u521b\u5efa\u7cfb\u7edf\u7528\u6237&#xff0c;\u518d\u6dfb\u52a0\u4e3a Samba \u7528\u6237&#xff08;\u4e24\u8005\u5bc6\u7801\u72ec\u7acb&#xff09;\u3002<\/p>\n<h4>\u521b\u5efa\u7cfb\u7edf\u7528\u6237&#xff08;\u4ec5\u7528\u4e8e Samba \u8ba4\u8bc1&#xff0c;\u7981\u6b62\u767b\u5f55\u7cfb\u7edf&#xff09;<\/h4>\n<p># -M&#xff1a;\u4e0d\u521b\u5efa\u5bb6\u76ee\u5f55&#xff1b;-s \/sbin\/nologin&#xff1a;\u7981\u6b62\u767b\u5f55\u7cfb\u7edf<br \/>\nuseradd -M -s \/sbin\/nologin smbuser1<br \/>\nuseradd -M -s \/sbin\/nologin smbuser2<br \/>\nuseradd -M -s \/sbin\/nologin smbguest  # \u8bbf\u5ba2\u7528\u6237<\/p>\n<h4 style=\"background-color:transparent\">\u8bbe\u7f6e Samba \u5bc6\u7801<\/h4>\n<p>smbpasswd -a smbuser1   # \u4e3a\u7528\u6237\u6dfb\u52a0Samba\u5bc6\u7801&#xff08;\u4f1a\u63d0\u793a\u8f93\u5165\u4e24\u6b21&#xff09;<br \/>\nsmbpasswd -a smbuser2<br \/>\nsmbpasswd -a smbguest<\/p>\n<p># \u5982\u679c\u9700\u8981\u7981\u7528\u67d0\u4e2a\u7528\u6237&#xff0c;\u7528&#xff1a;smbpasswd -d \u7528\u6237\u540d<br \/>\n# \u542f\u7528\u7528\u6237&#xff1a;smbpasswd -e \u7528\u6237\u540d<\/p>\n<p>\u6ce8\u610f&#xff1a;Samba \u5bc6\u7801\u548c\u7cfb\u7edf\u7528\u6237\u5bc6\u7801\u662f\u4e24\u56de\u4e8b&#xff0c;\u5c31\u7b97\u7cfb\u7edf\u7528\u6237\u6ca1\u5bc6\u7801&#xff0c;\u4e5f\u5fc5\u987b\u8bbe\u7f6e Samba \u5bc6\u7801\u624d\u80fd\u767b\u5f55\u3002<\/p>\n<h3 style=\"background-color:transparent\">\u9632\u706b\u5899\u4e0e SELinux \u914d\u7f6e<\/h3>\n<p>\u65b0\u624b\u642d\u5efa\u65f6\u7ecf\u5e38\u9047\u5230 &#034;\u670d\u52a1\u5668\u80fd ping \u901a&#xff0c;\u4f46\u8fde\u63a5\u4e0d\u4e0a\u5171\u4eab&#034; \u7684\u95ee\u9898&#xff0c;\u5927\u6982\u7387\u662f\u9632\u706b\u5899\u6216 SELinux \u9650\u5236\u4e86\u8bbf\u95ee\u3002<\/p>\n<h4>\u9632\u706b\u5899\u914d\u7f6e<\/h4>\n<p># \u5141\u8bb8Samba\u670d\u52a1\u901a\u8fc7\u9632\u706b\u5899&#xff08;\u6c38\u4e45\u751f\u6548&#xff09;<br \/>\nfirewall-cmd &#8211;permanent &#8211;add-service&#061;samba<br \/>\n# \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u89c4\u5219<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p>\u5982\u679c\u7528\u7684\u662f iptables&#xff0c;\u9700\u8981\u624b\u52a8\u5f00\u653e\u7aef\u53e3&#xff1a;<\/p>\n<p>iptables -A INPUT -p tcp &#8211;dport 139 -j ACCEPT  # SMB\u534f\u8bae\u7aef\u53e3<br \/>\niptables -A INPUT -p tcp &#8211;dport 445 -j ACCEPT<br \/>\niptables -A INPUT -p udp &#8211;dport 137 -j ACCEPT  # NetBIOS\u7aef\u53e3<br \/>\niptables -A INPUT -p udp &#8211;dport 138 -j ACCEPT<\/p>\n<h4 style=\"background-color:transparent\">SELinux \u914d\u7f6e<\/h4>\n<p># \u5141\u8bb8Samba\u8bbf\u95ee\u76ee\u5f55&#xff08;-P\u8868\u793a\u6c38\u4e45\u751f\u6548&#xff09;<br \/>\nsetsebool -P samba_enable_home_dirs on<br \/>\nsetsebool -P samba_export_all_rw on<\/p>\n<p># \u5982\u679c\u5171\u4eab\u76ee\u5f55\u4e0d\u5728\u9ed8\u8ba4\u8def\u5f84&#xff08;\u5982\/srv\/samba&#xff09;&#xff0c;\u9700\u8981\u8bbe\u7f6eSELinux\u4e0a\u4e0b\u6587<br \/>\nsemanage fcontext -a -t samba_share_t &#034;\/srv\/samba(\/.*)?&#034;<br \/>\nrestorecon -R \/srv\/samba  # \u5e94\u7528\u4e0a\u4e0b\u6587\u8bbe\u7f6e<\/p>\n<p>\u6211\u5f53\u521d\u5728\u8fd9\u91cc\u5361\u4e86\u534a\u5c0f\u65f6&#xff0c;\u4e00\u76f4\u63d0\u793a &#034;\u6743\u9650\u88ab\u62d2\u7edd&#034;&#xff0c;\u6700\u540e\u53d1\u73b0\u662f SELinux \u6ca1\u914d\u7f6e\u597d&#xff0c;\u5927\u5bb6\u4e00\u5b9a\u8981\u91cd\u89c6\u8fd9\u4e00\u6b65&#xff01;<\/p>\n<h3 style=\"background-color:transparent\">\u591a\u5e73\u53f0\u8fde\u63a5 SMB \u5171\u4eab\u7684\u65b9\u6cd5<\/h3>\n<h4>Windows \u7cfb\u7edf\u8fde\u63a5<\/h4>\n<h5>\u65b9\u6cd5 1&#xff1a;\u901a\u8fc7\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668<\/h5>\n<li>\u6253\u5f00 &#034;\u6b64\u7535\u8111&#034;&#xff0c;\u5728\u5730\u5740\u680f\u8f93\u5165\u00a0\\\\\\\\\u670d\u52a1\u5668IP\u00a0\u6216\u00a0\\\\\\\\FILESERVER&#xff08;\u524d\u9762\u914d\u7f6e\u7684 netbios \u540d&#xff09;<\/li>\n<li>\u5f39\u51fa\u767b\u5f55\u6846&#xff0c;\u8f93\u5165 Samba \u7528\u6237\u540d&#xff08;\u5982 smbuser1&#xff09;\u548c\u5bc6\u7801<\/li>\n<li>\u52fe\u9009 &#034;\u8bb0\u4f4f\u51ed\u636e&#034;&#xff0c;\u4e0b\u6b21\u4e0d\u7528\u91cd\u590d\u8f93\u5165<\/li>\n<h5>\u65b9\u6cd5 2&#xff1a;\u6620\u5c04\u4e3a\u7f51\u7edc\u9a71\u52a8\u5668<\/h5>\n<li>\u53f3\u952e &#034;\u6b64\u7535\u8111&#034; \u2192 &#034;\u6620\u5c04\u7f51\u7edc\u9a71\u52a8\u5668&#034;<\/li>\n<li>\u9009\u62e9\u9a71\u52a8\u5668\u53f7&#xff08;\u5982 Z:&#xff09;&#xff0c;\u8f93\u5165\u8def\u5f84\u00a0\\\\\\\\\u670d\u52a1\u5668IP\\\\\u5171\u4eab\u540d&#xff08;\u4f8b&#xff1a;\\\\\\\\192.168.1.100\\\\public&#xff09;<\/li>\n<li>\u52fe\u9009 &#034;\u767b\u5f55\u65f6\u91cd\u65b0\u8fde\u63a5&#034;&#xff0c;\u70b9\u51fb\u5b8c\u6210\u540e\u8f93\u5165\u5bc6\u7801\u5373\u53ef<\/li>\n<h5>\u5e38\u89c1\u95ee\u9898&#xff1a;<\/h5>\n<ul>\n<li>Windows 10\/11 \u8fde\u63a5\u5931\u8d25&#xff1a;\u9ed8\u8ba4\u7981\u7528\u4e86 SMB1 \u534f\u8bae&#xff0c;\u9700\u5728 Samba \u914d\u7f6e\u4e2d\u6dfb\u52a0\u00a0min protocol &#061; SMB2\u00a0\u548c\u00a0max protocol &#061; SMB3<\/li>\n<li>\u627e\u4e0d\u5230\u7f51\u7edc\u8def\u5f84&#xff1a;\u5148 ping \u670d\u52a1\u5668 IP&#xff0c;\u518d\u68c0\u67e5 445 \u7aef\u53e3\u662f\u5426\u5f00\u653e&#xff08;telnet \u670d\u52a1\u5668IP 445&#xff09;<\/li>\n<\/ul>\n<h4>Mac \u7cfb\u7edf\u8fde\u63a5<\/h4>\n<h5>\u65b9\u6cd5 1&#xff1a;\u901a\u8fc7 Finder<\/h5>\n<li>\u6253\u5f00 Finder&#xff0c;\u6309\u00a0Command &#043; K&#xff08;\u6216\u70b9\u51fb &#034;\u524d\u5f80&#034; \u2192 &#034;\u8fde\u63a5\u670d\u52a1\u5668&#034;&#xff09;<\/li>\n<li>\u8f93\u5165\u00a0smb:\/\/\u670d\u52a1\u5668IP\u00a0\u6216\u00a0smb:\/\/FILESERVER<\/li>\n<li>\u9009\u62e9 &#034;\u6ce8\u518c\u7528\u6237&#034;&#xff0c;\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff0c;\u9009\u62e9\u8981\u6302\u8f7d\u7684\u5171\u4eab<\/li>\n<h5>\u65b9\u6cd5 2&#xff1a;\u547d\u4ee4\u884c\u6302\u8f7d<\/h5>\n<p># \u521b\u5efa\u6302\u8f7d\u70b9<br \/>\nsudo mkdir \/Volumes\/smbshare<br \/>\n# \u6302\u8f7d\u5171\u4eab&#xff08;\u66ff\u6362\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001IP\u548c\u5171\u4eab\u540d&#xff09;<br \/>\nsudo mount -t smbfs \/\/smbuser1:\u5bc6\u7801&#064;192.168.1.100\/public \/Volumes\/smbshare<br \/>\n# \u5378\u8f7d&#xff1a;sudo umount \/Volumes\/smbshare<\/p>\n<h5>\u5e38\u89c1\u95ee\u9898&#xff1a;<\/h5>\n<ul>\n<li>\u4e2d\u6587\u6587\u4ef6\u540d\u4e71\u7801&#xff1a;\u5728 Samba \u914d\u7f6e\u4e2d\u6dfb\u52a0\u00a0unix charset &#061; UTF-8\u00a0\u548c\u00a0dos charset &#061; CP936<\/li>\n<li>\u8fde\u63a5\u901f\u5ea6\u6162&#xff1a;\u8fde\u63a5\u65f6\u6307\u5b9a\u534f\u8bae\u7248\u672c&#xff0c;\u5982\u00a0smb:\/\/192.168.1.100\/public?protocol_vers_map&#061;7<\/li>\n<\/ul>\n<h4>Linux \u7cfb\u7edf\u8fde\u63a5<\/h4>\n<p>\u9700\u8981\u5148\u5b89\u88c5\u5ba2\u6237\u7aef\u5de5\u5177&#xff1a;<\/p>\n<p># CentOS\/RHEL<br \/>\nyum install -y samba-client cifs-utils<br \/>\n# Ubuntu\/Debian<br \/>\napt-get install -y smbclient cifs-utils<\/p>\n<h5>\u65b9\u6cd5 1&#xff1a;\u7528 smbclient<\/h5>\n<p># \u5217\u51fa\u670d\u52a1\u5668\u5171\u4eab<br \/>\nsmbclient -L \/\/192.168.1.100 -U smbuser1<br \/>\n# \u8fde\u63a5\u5171\u4eab&#xff08;\u8f93\u5165\u5bc6\u7801\u540e\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f&#xff09;<br \/>\nsmbclient \/\/192.168.1.100\/public -U smbuser1<\/p>\n<p>\u4ea4\u4e92\u6a21\u5f0f\u5e38\u7528\u547d\u4ee4&#xff1a;ls&#xff08;\u5217\u6587\u4ef6&#xff09;\u3001get \u6587\u4ef6\u540d&#xff08;\u4e0b\u8f7d&#xff09;\u3001put \u6587\u4ef6\u540d&#xff08;\u4e0a\u4f20&#xff09;\u3001exit&#xff08;\u9000\u51fa&#xff09;<\/p>\n<h5>\u65b9\u6cd5 2&#xff1a;\u6302\u8f7d\u4e3a\u672c\u5730\u76ee\u5f55<\/h5>\n<p># \u521b\u5efa\u6302\u8f7d\u70b9<br \/>\nsudo mkdir \/mnt\/smbshare<br \/>\n# \u6302\u8f7d&#xff08;\u5b89\u5168\u8d77\u89c1&#xff0c;\u5efa\u8bae\u7528\u51ed\u636e\u6587\u4ef6&#xff0c;\u907f\u514d\u5bc6\u7801\u660e\u6587&#xff09;<br \/>\nsudo mount -t cifs \/\/192.168.1.100\/public \/mnt\/smbshare -o username&#061;smbuser1<\/p>\n<p>\u521b\u5efa\u51ed\u636e\u6587\u4ef6&#xff1a;<\/p>\n<p>sudo vim \/etc\/samba\/credentials  # \u5185\u5bb9\u5982\u4e0b&#xff1a;<br \/>\nusername&#061;smbuser1<br \/>\npassword&#061;\u4f60\u7684\u5bc6\u7801<br \/>\ndomain&#061;WORKGROUP<\/p>\n<p># \u8bbe\u7f6e\u6743\u9650&#xff08;\u4ec5root\u53ef\u89c1&#xff09;<br \/>\nsudo chmod 600 \/etc\/samba\/credentials<br \/>\n# \u7528\u51ed\u636e\u6587\u4ef6\u6302\u8f7d<br \/>\nsudo mount -t cifs \/\/192.168.1.100\/public \/mnt\/smbshare -o credentials&#061;\/etc\/samba\/credentials<\/p>\n<h5>\u65b9\u6cd5 3&#xff1a;\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/h5>\n<p>\u7f16\u8f91\/etc\/fstab\u6dfb\u52a0\u4e00\u884c&#xff1a;<\/p>\n<p>\/\/192.168.1.100\/public \/mnt\/smbshare cifs credentials&#061;\/etc\/samba\/credentials,uid&#061;1000,gid&#061;1000,iocharset&#061;utf8 0 0<\/p>\n<p>uid \u548c gid \u66ff\u6362\u4e3a\u4f60\u7684\u7528\u6237 ID&#xff0c;\u7528id\u547d\u4ee4\u67e5\u770b&#xff09;<\/p>\n<h3>\u6545\u969c\u6392\u9664\u5c0f\u6280\u5de7<\/h3>\n<p>\u9047\u5230\u8fde\u63a5\u95ee\u9898\u65f6&#xff0c;\u6309\u4ee5\u4e0b\u6b65\u9aa4\u6392\u67e5&#xff1a;<\/p>\n<li>\u68c0\u67e5\u670d\u52a1\u72b6\u6001&#xff1a;systemctl status smb nmb\u00a0\u786e\u4fdd\u670d\u52a1\u6b63\u5e38\u8fd0\u884c<\/li>\n<li>\u67e5\u770b\u65e5\u5fd7&#xff1a;tail -f \/var\/log\/samba\/log.smbd\u00a0\u65e5\u5fd7\u4f1a\u63d0\u793a\u5177\u4f53\u9519\u8bef&#xff08;\u5982\u6743\u9650\u3001\u8ba4\u8bc1\u95ee\u9898&#xff09;<\/li>\n<li>\u6d4b\u8bd5\u914d\u7f6e&#xff1a;testparm\u00a0\u68c0\u67e5 smb.conf \u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef<\/li>\n<li>\u9a8c\u8bc1\u7aef\u53e3&#xff1a;\u7528netstat -tuln\u786e\u8ba4 139\u3001445 \u7aef\u53e3\u5df2\u76d1\u542c<\/li>\n<p>\u4e0d\u540c\u5e73\u53f0\u7684\u5178\u578b\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>Windows&#xff1a;\u6e05\u9664\u51ed\u636e\u7ba1\u7406\u5668\u4e2d\u7684\u65e7\u8bb0\u5f55&#xff08;\u63a7\u5236\u9762\u677f \u2192 \u51ed\u636e\u7ba1\u7406\u5668&#xff09;<\/li>\n<li>Mac&#xff1a;\u91cd\u542f Finder&#xff08;killall Finder&#xff09;\u6216\u6e05\u9664 Keychain \u4e2d\u7684\u5bc6\u7801<\/li>\n<li>Linux&#xff1a;\u68c0\u67e5 SELinux \u72b6\u6001&#xff08;getenforce&#xff09;&#xff0c;\u5fc5\u8981\u65f6\u4e34\u65f6\u5173\u95ed&#xff08;setenforce 0&#xff09;\u6d4b\u8bd5<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>SMB \u786e\u5b9e\u662f\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\u7684\u4f18\u9009\u65b9\u6848&#xff0c;\u914d\u7f6e\u4e0d\u7b97\u590d\u6742&#xff0c;\u4f46\u7ec6\u8282\u5f88\u591a&#xff08;\u5c24\u5176\u662f\u6743\u9650\u548c\u5b89\u5168\u8bbe\u7f6e&#xff09;\u3002\u642d\u5efa\u5b8c\u6210\u540e&#xff0c;\u56e2\u961f\u5185\u7684 Windows\u3001Mac\u3001Linux \u7528\u6237\u90fd\u80fd\u8f7b\u677e\u8bbf\u95ee\u5171\u4eab\u6587\u4ef6&#xff0c;\u6548\u7387\u63d0\u5347\u4e0d\u5c11\u3002<\/p>\n<p>\u6211\u7684\u7ecf\u9a8c\u662f&#xff1a;\u591a\u6d4b\u8bd5\u3001\u591a\u8bb0\u5f55\u3002\u4e0d\u540c\u7cfb\u7edf\u7684\u884c\u4e3a\u5dee\u5f02\u53ef\u80fd\u8d85\u51fa\u9884\u671f&#xff0c;\u9047\u5230\u95ee\u9898\u5148\u67e5\u65e5\u5fd7&#xff0c;\u5927\u90e8\u5206\u5751\u90fd\u80fd\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u89e3\u51b3\u3002\u53e6\u5916&#xff0c;\u628a\u914d\u7f6e\u548c\u8fde\u63a5\u65b9\u6cd5\u6574\u7406\u6210\u6587\u6863\u53d1\u7ed9\u56e2\u961f&#xff0c;\u80fd\u51cf\u5c11\u5f88\u591a\u540e\u7eed\u7684\u652f\u6301\u5de5\u4f5c\u3002<\/p>\n<p>\u5982\u679c\u5927\u5bb6\u5728\u642d\u5efa\u8fc7\u7a0b\u4e2d\u9047\u5230\u7279\u6b8a\u95ee\u9898&#xff0c;\u6b22\u8fce\u7559\u8a00\u8ba8\u8bba&#xff0c;\u4e00\u8d77\u8e29\u5751\u4e00\u8d77\u8fdb\u6b65&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb892\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5148\u7b80\u5355\u79d1\u666e\u4e0b\uff0c\u662f\u4e00\u79cd\u7f51\u7edc\u6587\u4ef6\u5171\u4eab\u534f\u8bae\uff0c\u6700\u5f00\u59cb\u662f\u5fae\u8f6f\u4e3a Windows \u7cfb\u7edf\u5f00\u53d1\u7684\uff0c\u540e\u6765\u88ab\u5e7f\u6cdb\u652f\u6301\u3002\u7b80\u5355\u8bf4\uff0c\u5b83\u80fd\u8ba9\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u5907\u5728\u5c40\u57df\u7f51\u5185\u50cf\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u4e00\u6837\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5171\u4eab\u76ee\u5f55\u3002\u517c\u5bb9\u6027\u5f3a\uff1aWindows \u539f\u751f\u652f\u6301\uff0cMac \u548c Linux \u4e5f\u80fd\u8f7b\u677e\u5bf9\u63a5\uff0c\u4e0d\u7528\u7ed9\u4e0d\u540c\u7cfb\u7edf\u7684\u7528\u6237\u5355\u72ec\u57f9\u8bad\u914d\u7f6e\u76f8\u5bf9\u7b80\u5355\uff1a\u76f8\u6bd4 NFS \u7684\u590d\u6742\u6743\u9650\u7ba1\u7406\uff0cSMB \u5bf9\u65b0\u624b\u66f4\u53cb\u597d\u529f\u80fd\u5168\u9762\uff1a\u652f\u6301\u7528\u6237\u8ba4\u8bc1\u3001\u6743\u9650\u63a7\u5236\u3001\u6587\u4ef6\u9501\u7b49\uff0c\u6ee1\u8db3\u56e2\u961f\u5171\u4eab\u7684\u57fa\u672c\u9700\u6c42\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-54438","post","type-post","status-publish","format-standard","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/54438.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb892\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5148\u7b80\u5355\u79d1\u666e\u4e0b\uff0c\u662f\u4e00\u79cd\u7f51\u7edc\u6587\u4ef6\u5171\u4eab\u534f\u8bae\uff0c\u6700\u5f00\u59cb\u662f\u5fae\u8f6f\u4e3a Windows \u7cfb\u7edf\u5f00\u53d1\u7684\uff0c\u540e\u6765\u88ab\u5e7f\u6cdb\u652f\u6301\u3002\u7b80\u5355\u8bf4\uff0c\u5b83\u80fd\u8ba9\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u5907\u5728\u5c40\u57df\u7f51\u5185\u50cf\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u4e00\u6837\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5171\u4eab\u76ee\u5f55\u3002\u517c\u5bb9\u6027\u5f3a\uff1aWindows \u539f\u751f\u652f\u6301\uff0cMac \u548c Linux \u4e5f\u80fd\u8f7b\u677e\u5bf9\u63a5\uff0c\u4e0d\u7528\u7ed9\u4e0d\u540c\u7cfb\u7edf\u7684\u7528\u6237\u5355\u72ec\u57f9\u8bad\u914d\u7f6e\u76f8\u5bf9\u7b80\u5355\uff1a\u76f8\u6bd4 NFS \u7684\u590d\u6742\u6743\u9650\u7ba1\u7406\uff0cSMB \u5bf9\u65b0\u624b\u66f4\u53cb\u597d\u529f\u80fd\u5168\u9762\uff1a\u652f\u6301\u7528\u6237\u8ba4\u8bc1\u3001\u6743\u9650\u63a7\u5236\u3001\u6587\u4ef6\u9501\u7b49\uff0c\u6ee1\u8db3\u56e2\u961f\u5171\u4eab\u7684\u57fa\u672c\u9700\u6c42\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/54438.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-12T23:00:19+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54438.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/54438.html\",\"name\":\"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-12T23:00:19+00:00\",\"dateModified\":\"2025-08-12T23:00:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/54438.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/54438.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54438.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/54438.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb892\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5148\u7b80\u5355\u79d1\u666e\u4e0b\uff0c\u662f\u4e00\u79cd\u7f51\u7edc\u6587\u4ef6\u5171\u4eab\u534f\u8bae\uff0c\u6700\u5f00\u59cb\u662f\u5fae\u8f6f\u4e3a Windows \u7cfb\u7edf\u5f00\u53d1\u7684\uff0c\u540e\u6765\u88ab\u5e7f\u6cdb\u652f\u6301\u3002\u7b80\u5355\u8bf4\uff0c\u5b83\u80fd\u8ba9\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u5907\u5728\u5c40\u57df\u7f51\u5185\u50cf\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u4e00\u6837\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5171\u4eab\u76ee\u5f55\u3002\u517c\u5bb9\u6027\u5f3a\uff1aWindows \u539f\u751f\u652f\u6301\uff0cMac \u548c Linux \u4e5f\u80fd\u8f7b\u677e\u5bf9\u63a5\uff0c\u4e0d\u7528\u7ed9\u4e0d\u540c\u7cfb\u7edf\u7684\u7528\u6237\u5355\u72ec\u57f9\u8bad\u914d\u7f6e\u76f8\u5bf9\u7b80\u5355\uff1a\u76f8\u6bd4 NFS \u7684\u590d\u6742\u6743\u9650\u7ba1\u7406\uff0cSMB \u5bf9\u65b0\u624b\u66f4\u53cb\u597d\u529f\u80fd\u5168\u9762\uff1a\u652f\u6301\u7528\u6237\u8ba4\u8bc1\u3001\u6743\u9650\u63a7\u5236\u3001\u6587\u4ef6\u9501\u7b49\uff0c\u6ee1\u8db3\u56e2\u961f\u5171\u4eab\u7684\u57fa\u672c\u9700\u6c42\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/54438.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-12T23:00:19+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/54438.html","url":"https:\/\/www.wsisp.com\/helps\/54438.html","name":"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-12T23:00:19+00:00","dateModified":"2025-08-12T23:00:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/54438.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/54438.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/54438.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5b9e\u6218\uff1a\u5728 CentOS 7 \u4e0a\u642d\u5efa SMB \u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u591a\u5e73\u53f0\u6587\u4ef6\u5171\u4eab\uff08\u9644\u907f\u5751\u6307\u5357\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=54438"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54438\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=54438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=54438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=54438"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=54438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}