有没有办法直接通过 Linux 本身从 Samba 共享的文件和文件夹设置 Windows ACL?
我知道有 setfacl/getfacl 选项,但它们只能在以下之间更改: - DENY | 只读 | 完全控制 - 如果我没记错的话。
但我需要一个Windows安全组修改权限。并且递归到所有以下目录。如果我直接通过 SMB 连接从 Windows 更改此设置,由于文件数量庞大,这将需要数小时甚至数天的时间。有办法做到这一点还是仍然不可能?我知道这些信息存储在共享中的任何位置,因为我可以将 Linux 中的文件复制到共享文件夹,并且它们会自动获得之前选择的修改权限。
为了避免通过 SMB 更改设置,我从共享中复制文件。删除共享中的所有文件并更改共享上 Windows 的权限。
Actually this is how I proceeding so far:
In Linux:
1. I copy files and folders from the share folder to a separate location.
2. I delete all stuff in the share folder.
In Windows:
3. Then accessing the empty share folder through SMB.
4. From here I can change …Run Code Online (Sandbox Code Playgroud)