嵌套 Samba 共享

嵌套 Samba 共享

由于某种原因,共享 //192.168.1.5/NonMedia/QEveline 不会通过 /etc/fstab 内容挂载。错误是

安装错误(13):权限被拒绝

为什么我不能以其他用户身份挂载共享?这是 fstab 的相关部分

#//192.168.1.5/QMedia /mnt/Proxmox5/QMedia cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1003,uid=1001,file_mode=0750,dir_mode=0750 0 0
//192.168.1.5/NonMedia/QEveline /mnt/Proxmox5/QEveline cifs ,username=eveline,password=redacted,workgroup=workgroup,iocharset=utf8,file_mode=0770,dir_mode=0770 0 0
#//192.168.1.5/NonMedia /mnt/Proxmox5/NonMedia cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1003,uid=1001,file_mode=0750,dir_mode=0750 0 0
#//192.168.1.5/NonMedia/guyf /mnt/Proxmox5/guyf cifs ,username=guyf,password=redacted,vers=3.0,sec=ntlmv2,iocharset=utf8,gid=1001,uid=1001,file_mode=0750,dir_mode=0750 0 0

Proxmox 使用 samba 提供文件。我有不同的用户名(elizabeth、lieslotte、guyf、eveline),它们都在 qnap 组中。每个用户都有自己的共享,该共享嵌套在 //192.168.1.4/NonMedia/username 中。只有用户名才能读取/编辑和删除这些用户名共享/文件。我还有 //192.168.1.4/NonMedia/QDocuments //192.168.1.4/NonMedia/QGame 等共享...这些共享需要每个用户都可以访问/编辑。只有文件的创建者才能删除他的文件。

这是我的 smb.conf 文件的摘录

[QMedia]
path = /mnt/Data/Media
read only = No
guest ok = yes
valid users = guyf eveline @qnap
force create mode = 770
force directory mode = 1770
inherit permissions = yes
writeable = yes
force user = guyf
force group = qnap

[QEveline]
comment = Hier staat media
path = /mnt/QData/NonMedia/QEveline
read only = No
guest ok = No
valid users = eveline
force create mode = 770
force directory mode = 1770
inherit permissions = yes
writeable = yes
force user = eveline
force group = eveline

[guyf]
path = /mnt/QData/NonMedia/guyf
read only = No
guest ok = yes
valid users = guyf 
force create mode = 770
force directory mode = 1770
inherit permissions = yes
writeable = yes
force user = guyf       
force group = guyf

[NonMedia]
path = /mnt/QData/NonMedia
read only = No
guest ok = No
valid users = guyf eveline @qnap
force create mode = 700
force directory mode = 1770
inherit permissions = yes
writeable = yes
force user = guyf       
force group = qnap

如何挂载具有不同权限的嵌套共享?

感谢阅读,盖伊

相关内容