一. Samba的安装:
# sudo apt-get insall samba
# sudo apt-get install smbfs
二.Samba的配置:
1.vi /etc/samba/smb.conf
2.在share definitions中的最顶部添加:
[root]
comment = Root Directories
browseable = yes 可浏览
writable = yes 可写
path = / 共享路径
valid users = dong 添加了用户名
3.执行命令smbpasswd -a dong ,为dong添加密码