如果我使用setfacl为
文件,同一个文件是否有许多acl块。如果是,如何
标识acl所有者。
最佳答案
getfacl
实用程序将显示您是acl的所有者,无论哪个用户拥有文件系统上的文件,当然您也可以从ls -l
的输出中看到这一点。
例如,请尝试以下操作:
touch j
# clean slate, just default entries
getfacl j
setfacl -m user:`id -un`:rwx j
# note how now you have a named acl entry with rwx
getfacl j
sudo chown lp j
# the following will fail, you have no acl access
setfacl -m user:`id -un`:rw- j
# but this will work, because of 1st setfacl
echo "foo" >> j
所以,文件的所有者和acl的所有者可以归结为同一件事。
关于linux - 如何识别ACL拥有者,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22580494/