{"id":4309,"date":"2019-07-26T23:51:47","date_gmt":"2019-07-26T15:51:47","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4309"},"modified":"2019-07-26T23:51:49","modified_gmt":"2019-07-26T15:51:49","slug":"smbpasswd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/smbpasswd","title":{"rendered":"smbpasswd\u547d\u4ee4 – \u4fee\u6539\u7528\u6237SMB\u5bc6\u7801"},"content":{"rendered":"\n
smbpasswd\u547d\u4ee4\u5c5e\u4e8esamba\u5957\u4ef6\uff0c\u7528\u6237\u6dfb\u52a0\u53ca\u5220\u9664samba\u7528\u6237\u548c\u4e3a\u7528\u6237\u4fee\u6539\u5bc6\u7801\u3002<\/p>\n\n\n\n
\u56e0\u4e3asamba\u7528\u6237\u662f\u57fa\u4e8eLinux\u7684\u7cfb\u7edf\u7528\u6237\u7684\uff0c\u6240\u4ee5\u5728\u6dfb\u52a0samba\u7528\u6237\u524d\u9700\u8981\u5148\u521b\u5efaLinux\u7cfb\u7edf\u7528\u6237\uff0c\u5426\u5219\u6dfb\u52a0samba\u7528\u6237\u5c06\u5931\u8d25\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f: <\/strong> smbpasswd [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u6dfb\u52a0samba\u7528\u6237sarah\uff1a<\/p>\n\n\n\n \u5c06sarah\u7528\u6237\u7684\u5bc6\u7801\u7f6e\u7a7a\uff1a<\/p>\n\n\n\n \u6fc0\u6d3b\u7528\u6237user1\uff1a<\/p>\n\n\n\n \u7981\u7528\u7528\u6237user2\uff1a<\/p>\n\n\n\n \u5220\u9664\u7528\u6237user2\uff1a<\/p>\n\n\n\n smbpasswd\u547d\u4ee4\u5c5e\u4e8esamba\u5957\u4ef6\uff0c\u7528\u6237\u6dfb\u52a0\u53ca\u5220\u9664samba\u7528\u6237\u548c\u4e3a\u7528\u6237\u4fee\u6539\u5bc6\u7801\u3002 \u56e0\u4e3asamba\u7528\u6237\u662f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4309"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4309"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4309\/revisions"}],"predecessor-version":[{"id":4334,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4309\/revisions\/4334"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a<\/td> \u5411smbpasswd\u6587\u4ef6\u4e2d\u6dfb\u52a0\u7528\u6237<\/td><\/tr> -c<\u914d\u7f6e\u6587\u4ef6><\/td> \u6307\u5b9asamba\u7684\u914d\u7f6e\u6587\u4ef6<\/td><\/tr> -x<\/td> \u4ecesmbpasswd\u6587\u4ef6\u4e2d\u5220\u9664\u7528\u6237<\/td><\/tr> -d<\/td> \u5728smbpasswd\u6587\u4ef6\u4e2d\u7981\u7528\u6307\u5b9a\u7684\u7528\u6237<\/td><\/tr> -e<\/td> \u5728smbpasswd\u6587\u4ef6\u4e2d\u6fc0\u6d3b\u6307\u5b9a\u7684\u7528\u6237<\/td><\/tr> -n<\/td> \u5c06\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u7f6e\u7a7a<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# smbpasswd -a sarah<\/pre>\n\n\n\n
[root@linuxcool ~]# smbpasswd -n sarah<\/pre>\n\n\n\n
[root@linuxcool ~]# smbpasswd -e user1<\/pre>\n\n\n\n
[root@linuxcool ~]# smbpasswd -d user2<\/pre>\n\n\n\n
[root@linuxcool ~]# smbpasswd -x user2<\/pre>\n","protected":false},"excerpt":{"rendered":"