diff --git "a/samba\351\205\215\347\275\256" "b/samba\351\205\215\347\275\256" new file mode 100644 index 0000000000000000000000000000000000000000..37f7aacf666e9a107f7a2e4eaaf77f6e3affceef --- /dev/null +++ "b/samba\351\205\215\347\275\256" @@ -0,0 +1,19 @@ + 3. Samba服务 + a. 修改/etc/samba/smb.cfg + [zhengguojian] + comment = share for other + path = /home/zhengguojian + available = yes + browseable = yes + public = yes + writable = yes + valid users = zhengguojian + create mask = 0777 + directory mask = 0777 + b. 添加samba用户 + sudo smbpasswd -a zhengguojian + 重启samba服务 + sudo service smbd restart + + c. Centos会由于enforce的原因无法通过samba有效访问服务器,可以设置“防火墙”关闭: + sudo setenforce 0