0

我想知道是否可以自动将文件用户和组更改为与父级的用户和组相同。例如。现有问题

getfacl /home/Test/UPS/
getfacl: Removing leading '/' from absolute path names
# file: home/Test/UPS
# owner: user1
# group: basegroup
user::rwx
group::r-x
other::r-x

ls -l /home/Test/UPS/
-rw-r--r-- 1 user1 basegroup 1450 Jul 12 11:54 file.edi

ls -l /home/Test/UPS/
-rw-r--r-- 1 user2 group2 1450 Jul 12 11:54 file.edi

my group2 is part of basegroup

I want files with permission as below automatically whenever file comes into  /home/Test/UPS/ directory.

ls -l /home/Test/UPS/
-rw-r--r-- 1 user1 basegroup 1450 Jul 12 11:54 file.edi

Please help...

4

1 回答 1

0

我知道您可以对 samba 挂载目录使用强制组和强制用户,但我不知道有任何方式自动覆盖本地目录中的用户和组

于 2013-09-25T11:06:28.520 回答