我想创建一个具有完全读写访问权限的公用文件夹。我的配置问题是Windows用户作为来宾系统没有问题(他们可以读写(RW)和删除(Delete)),而我的Ubuntu客户端不能这样做。我们只能读写,而不能创建或删除。
这是服务器上的我的smb.conf:
[global]
workgroup = WORKGROUP
netbios name = FILESERVER
server string = TurnKey FileServer
os level = 20
security = user
map to guest = Bad Password
passdb backend = tdbsam
null passwords = yes
admin users = root
encrypt passwords = true
obey pam restrictions = yes
pam password change = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
add user script = /usr/sbin/useradd -m '%u' -g users -G users
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
guest account = nobody
syslog = 0
log file = /var/log/samba/samba.log
max log size = 1000
wins support = yes
dns proxy = no
socket options = TCP_NODELAY
panic action = /usr/share/samba/panic-action %d
[homes]
comment = Home Directory
browseable = no
read only = no
valid users = %S
[storage]
create mask = 0777
directory mask = 0777
browseable = yes
comment = Public Share
writeable = yes
public = yes
path = /srv/storage
以下FSTAB条目不会产生对共享的完全R / W访问。
//192.168.0.5/storage /media/myname/TK-Public/ cifs rw 0 0
这也不起作用
//192.168.0.5/storage /media/myname/TK-Public/ cifs rw,guest,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm 0 0
使用Nemo / Nautilus中的以下位置而不安装要挂载的共享可以正常工作:
smb://192.168.0.5/storage/
额外信息。我只是注意到,如果在挂载后将文件复制到共享,我的Ubuntu客户端会立即使“ nobody”成为所有者,并且“ no group”组已经读写,其他所有人都为只读。
我究竟做错了什么?