第一步:在根下执行:mkdir /public
修改下权限:chmod 777 /public
第二步:vi /etc/samba/smb.conf
修改如下配置:
修改security = user为security = share
shift+g移动光标到文末:添加如下内容
[public]
comment = public
path = /public
public = yes
read only = no
最后:重启smb服务:service smb restart