{"id":80952,"date":"2026-07-24T22:45:39","date_gmt":"2026-07-24T14:45:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80952.html"},"modified":"2026-07-24T22:45:39","modified_gmt":"2026-07-24T14:45:39","slug":"%e9%93%b6%e6%b2%b3%e9%ba%92%e9%ba%9f%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%b3%bb%e7%bb%9fv10%e5%9c%a8%e7%ba%bf-%e7%a6%bb%e7%ba%bf%e9%83%a8%e7%bd%b2samba%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80952.html","title":{"rendered":"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1"},"content":{"rendered":"<p>\u786e\u8ba4\u7cfb\u7edf\u7248\u672c uname -a<\/p>\n<p>[root&#064;localhost \u684c\u9762]# uname -a<br \/>\nLinux localhost.localdomain 4.19.90-89.11.v2401.ky10.x86_64 #1 SMP Tue May 7 18:33:01 CST 2024 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>\u5728\u7ebf\u5b89\u88c5&#xff1a;\u7ec8\u7aef\u91cc\u76f4\u63a5\u8fd0\u884c yum install samba<\/p>\n<p>\u79bb\u7ebf\u5b89\u88c5&#xff1a;\u89e3\u538bsmb\u79bb\u7ebf\u90e8\u7f72\u5305&#xff0c;\u5728\u89e3\u538b\u540e\u7684\u5b89\u88c5\u8def\u5f84\u4e0b\u6253\u5f00\u7ec8\u7aef\u8fd0\u884c yum localinstall -y *.rpm<\/p>\n<p>[root&#064;localhost smb]# yum localinstall -y *.rpm<br \/>\nLast metadata expiration check: 0:05:07 ago on 2025\u5e7411\u670830\u65e5 \u661f\u671f\u65e5 23\u65f619\u520639\u79d2.<br \/>\nDependencies resolved.<br \/>\n\u7701\u7565<\/p>\n<p>Upgraded:<br \/>\n  libsmbclient-4.11.12-32.p08.ky10.x86_64<br \/>\n  libwbclient-4.11.12-32.p08.ky10.x86_64<br \/>\n  samba-client-4.11.12-32.p08.ky10.x86_64<br \/>\n  samba-common-4.11.12-32.p08.ky10.x86_64                                       <\/p>\n<p>Installed:<br \/>\n  samba-4.11.12-32.p08.ky10.x86_64<br \/>\n  samba-common-tools-4.11.12-32.p08.ky10.x86_64<br \/>\n  samba-help-4.11.12-32.p08.ky10.x86_64<br \/>\n  samba-libs-4.11.12-32.p08.ky10.x86_64                                         <\/p>\n<p>Complete!<\/p>\n<p>\u542f\u52a8samba\u670d\u52a1<\/p>\n<p>1. \u542f\u52a8samba\u670d\u52a1<br \/>\nsystemctl start smb<\/p>\n<p>2. \u5f00\u673a\u542f\u52a8samba\u670d\u52a1<br \/>\nsystemctl enable smb<\/p>\n<p>3.\u67e5\u770bsamba\u7684\u72b6\u6001<br \/>\nsystemctl status smb<br \/>\n\u6709Active\u5219\u5728\u8fd0\u884c<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>systemctl stop firewalld.service \/\/\u505c\u6b62\u670d\u52a1<br \/>\nsystemctl disable firewalld.service \/\/\u5173\u95ed\u5f00\u673a\u542f\u52a8 <\/p>\n<p>\u5173\u95edselinux<\/p>\n<p>\u4e34\u65f6\u5173\u95ed<br \/>\nsetenforce 0<br \/>\n\u6c38\u4e45\u5173\u95ed<br \/>\n vi \/etc\/selinux\/config\u6587\u4ef6\u4e2d\u8bbe\u7f6eSELINUX&#061;disabled &#xff0c;\u7136\u540e\u91cd\u542f\u670d\u52a1\u5668\u3002 <\/p>\n<p>\u4fee\u6539\/etc\/samba\/smb.conf \u914d\u7f6e\u6587\u4ef6<\/p>\n<p># See smb.conf.example for a more detailed config file or<br \/>\n# read the smb.conf manpage.<br \/>\n# Run &#039;testparm&#039; to verify the config is correct after<br \/>\n# you modified it.<\/p>\n<p>[global]<br \/>\n    workgroup &#061; WORKGROUP #\u8fd9\u4e2a\u4fee\u6539\u8fc7&#xff0c;\u5b9e\u9645\u4f7f\u7528\u9ed8\u8ba4\u503c\u4e5f\u80fd\u6b63\u5e38<br \/>\n    security &#061; user<br \/>\n    passdb backend &#061; tdbsam<br \/>\n    printing &#061; cups<br \/>\n    printcap name &#061; cups<br \/>\n    load printers &#061; yes<br \/>\n    cups options &#061; raw<\/p>\n<p>[share]<br \/>\n    comment &#061; Share Directoriespath &#061; \/home\/smb\/share # \u5171\u4eab\u6587\u4ef6\u5939\u8def\u5f84<br \/>\n    public &#061; yes<br \/>\n    writable &#061; yes<br \/>\n    browseable &#061; yes<br \/>\n    create mask &#061; 0644<br \/>\n    directory mask &#061; 0775 <\/p>\n<p>\u6dfb\u52a0samba\u7528\u6237<\/p>\n<p>\u7b2c1\u6b65&#xff1a;\u9700\u8981\u6dfb\u52a0\u4e00\u4e2alinux\u7cfb\u7edf\u7ea7\u7528\u6237\u6765\u7ba1\u7406&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u5df2\u6709\u7528\u6237&#xff08;\u975eroot&#xff09;&#xff0c;\u4e5f\u53ef\u4ee5\u65b0\u5efa\u7528\u6237<br \/>\nuseradd smb \/\/\u6dfb\u52a0\u7528\u6237<br \/>\npasswd smb \/\/\u4fee\u6539\u5bc6\u7801(linux\u7cfb\u7edf\u7684\u7528\u5bc6\u7801&#xff0c;\u53ef\u4ee5\u4e0d\u8bbe\u7f6e&#xff0c;\u7136\u540e\u7981\u6b62\u8be5\u7528\u6237\u767b\u5f55&#xff09;<\/p>\n<p>\u7b2c2\u6b65&#xff1a;\u8bbe\u7f6esamba\u7528\u6237\u7684\u8fde\u63a5\u5bc6\u7801&#xff08;\u8fd9\u4e00\u6b65\u5f88\u91cd\u8981&#xff0c;\u5fc5\u987b\u8981\u6267\u884c&#xff0c;\u8fd9\u662f\u540e\u671f\u5ba2\u6237\u7aef\u8fde\u63a5\u65f6\u9700\u8981\u8f93\u5165\u7684\u5bc6\u7801&#xff09;<br \/>\nsmbpasswd -a smb # \u7ed9smb\u7528\u6237\u8bbe\u7f6e\u8fde\u63a5\u5bc6\u7801&#xff0c;\u547d\u4ee4\u56de\u8f66\u540e\u9700\u8981\u952e\u76d8\u8f93\u5165\u5bc6\u7801&#xff0c;\u8bb0\u4f4f\u5bc6\u7801\u5426\u5219\u540e\u671f\u8fde\u4e0d\u4e0a\u3002<\/p>\n<p>\u7b2c3\u6b65&#xff1a;\u8bbe\u7f6e\u5171\u4eab\u76ee\u5f55&#xff0c;\u6587\u4ef6\u6743\u9650<br \/>\nchown -R smb:smb \/home\/smb\/share<\/p>\n<p>\u7b2c4\u6b65&#xff1a;\u91cd\u542fsamba\u670d\u52a1<br \/>\nsystemctl restart smb<\/p>\n<p>\u81f3\u6b64\u5b89\u88c5\u5168\u90e8\u7ed3\u675f&#xff0c;\u5728windows\/linux\u4e0a\u6309\u6b63\u5e38\u6b65\u9aa4\u5373\u53ef\u6302\u8f7d\u5171\u4eab\u76ee\u5f55\u3002<\/p>\n<p>\u7279\u522b\u9e23\u8c22&#xff1a;\u8427\u8427\u4e91\u661f \u53c2\u8003\u6559\u7a0b\u94fe\u63a5https:\/\/blog.csdn.net\/XiaoXiaoYunXing\/article\/details\/130730311<\/p>\n<p>\u7279\u522b\u6ce8\u660e&#xff1a;\u79bb\u7ebf\u5305\u8fd8\u672a\u6253\u5305&#xff0c;\u6709\u9700\u8981\u7684\u8bf7\u7559\u8a00<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u786e\u8ba4\u7cfb\u7edf\u7248\u672c uname -a<br \/>\n[rootlocalhost \u684c\u9762]# uname -a<br \/>\nLinux localhost.localdomain 4.19.90-89.11.v2401.ky10.x86_64 #1 SMP Tue May 7 18:33:01 CST 2024 x86_64 x86_64 x86_64 GNU\/Linux\u5728\u7ebf\u5b89\u88c5&#xff1a;\u7ec8\u7aef\u91cc\u76f4\u63a5\u8fd0\u884c yum install samba<br \/>\n\u79bb\u7ebf\u5b89\u88c5&#xff1a;\u89e3\u538bsmb\u79bb\u7ebf\u90e8\u7f72\u5305&#xff0c;<\/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":[58,43,44],"topic":[],"class_list":["post-80952","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","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>\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \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\/80952.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u786e\u8ba4\u7cfb\u7edf\u7248\u672c uname -a [rootlocalhost \u684c\u9762]# uname -a Linux localhost.localdomain 4.19.90-89.11.v2401.ky10.x86_64 #1 SMP Tue May 7 18:33:01 CST 2024 x86_64 x86_64 x86_64 GNU\/Linux\u5728\u7ebf\u5b89\u88c5&#xff1a;\u7ec8\u7aef\u91cc\u76f4\u63a5\u8fd0\u884c yum install samba \u79bb\u7ebf\u5b89\u88c5&#xff1a;\u89e3\u538bsmb\u79bb\u7ebf\u90e8\u7f72\u5305&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80952.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T14:45:39+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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80952.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80952.html\",\"name\":\"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T14:45:39+00:00\",\"dateModified\":\"2026-07-24T14:45:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80952.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80952.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80952.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1\"}]},{\"@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":"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \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\/80952.html","og_locale":"zh_CN","og_type":"article","og_title":"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u786e\u8ba4\u7cfb\u7edf\u7248\u672c uname -a [rootlocalhost \u684c\u9762]# uname -a Linux localhost.localdomain 4.19.90-89.11.v2401.ky10.x86_64 #1 SMP Tue May 7 18:33:01 CST 2024 x86_64 x86_64 x86_64 GNU\/Linux\u5728\u7ebf\u5b89\u88c5&#xff1a;\u7ec8\u7aef\u91cc\u76f4\u63a5\u8fd0\u884c yum install samba \u79bb\u7ebf\u5b89\u88c5&#xff1a;\u89e3\u538bsmb\u79bb\u7ebf\u90e8\u7f72\u5305&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/80952.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T14:45:39+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80952.html","url":"https:\/\/www.wsisp.com\/helps\/80952.html","name":"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T14:45:39+00:00","dateModified":"2026-07-24T14:45:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80952.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80952.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80952.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u94f6\u6cb3\u9e92\u9e9f\u670d\u52a1\u5668\u7cfb\u7edfV10\u5728\u7ebf\/\u79bb\u7ebf\u90e8\u7f72samba\u670d\u52a1"}]},{"@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\/80952","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=80952"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80952\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80952"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}