我在nfsv4上面遇到configurationsamba服务器的问题。
我有两台Ubuntu 12.04服务器。
第一台服务器充当NFSv4存储,用于VDI和用户共享。 文件系统是ext4。 在这一点上,似乎都可以。
第二台服务器作为samba服务器,并从第一台共享一些文件夹。
任何事情都可以,但我使用共享文件夹的POSIX权限,但现在我想使用ACL。
在server1上,我启用了acl,在第二个上我安装了nfs4-acl-tools nfs4_(get | set)facl正常工作,我可以使用该工具pipe理server2上的访问。 ACL从shell工作正常。
但! 在Windows PC下访问受保护的文件夹是不可能的。 (在Linux PC上,我可以根据需要访问文件夹)。 从Windows客户端获得权限也不起作用。
有我的桑巴configuration:
[general] ... # Store DOS attributes in extended attributes (no mapping) map hidden = no map system = no map archive = no map readonly = no store dos attributes = yes # need for prevent locking files strict locking = no [folder] comment = all path = /mnt/folder browsable = yes guest ok = no read only = no inherit acls = yes map acl inherit = yes nt acl support = yes ea support = yes vfs objects = acl_xattr acl check permissions = False nfs4:acedup = merge nfs4:chown = yes nfs4:mode = special
这里是testing文件夹的ACL
nfs4_getfacl test A::OWNER@:rwaDxtTcCy A::f.lastname@localdomain:rwaDxtcy A::GROUP@:rwaDtcy A::EVERYONE@:tcy ls -la | grep test drwxrwx--- 2 root root 4096 Apr 2 09:34 test
f.lastname – 是可能进入目录的用户
有人可以帮我吗? 我已经用params玩,没有成功。
非常感谢!