Ubuntu/debian开启samba文件夹共享服务
1. 安装samba服务
apt-get install samba
2.创建用户
useradd -m admin
设置密码
passwd admin
3.设置samba访问共享账户密码,会要求你输入samba帐户的密码
smbpasswd -a admin
New SMB password:
Retype new SMB password:
列出现有的Samba用户列表:
pdbedit -w -L
4.修改/etc/samba/smb.conf,配置共享文件夹属性,在末尾处添加:
[ntfs]
path = /mnt/ntfs
writable = yes
guest ok = yes
write list = admin
validusers = admin
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
5.重启samba服务
service smbd restart
Windows测试