一:先改写Ubuntu中文件夹的读写权限:chmod 777 xxx
二:备份/etc/samba/smb.conf文件。
三:修改/etc/samba/smb.conf文件,把#security = user 改成security = user 和 username map = /etc/samba/smbusers #这个是用户映射文件
在workgroup 下加上
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
这个是为了避免乱码
[GoldenPlatform] #共享文件夹
comment = Shared Folder with username and password
path = /home/hyy/GoldenPlatform #共享目录
public = yes
writable = yes #可写
guest ok = yes #匿名可访问
create mask = 0700
directory mask = 0700
#force user = nobody
#force group = nogroup
#available = yes
browseable = yes
在smb.conf后加上这个,
重新启动samba /etc/init.d/samba restart
阅读(1205) | 评论(0) | 转发(0) |