1.vi smb.conf
在文件最后加入要共享的目录配置,sccmaly
[share]
comment =share
path = /home/share
public = yes
writable = yes
printable = no
write list = +staff

2.vi smbusers
设置共享目录的权限
root = administrator admin
nobody = guest pcguest smbguest
share=11

3. mkdir /home/share

4. chmod 777 /home/share/

5. cd /home/share

6. smbpasswd -a root

7. smbpasswd -a share

8. service smb restart