我有一个系统,其中多个用户正在运行chmod
相同文件的应用程序。我尝试使用setacl
将两个用户添加为文件的用户所有者来执行此操作,但它不起作用。由于chmod
系统调用失败,应用程序出错。
见示例:
[jacob@macbook-debian ~/Projects/test] getfacl bin/testfile
# file: bin/testfile
# owner: root
# group: root
user::rwx
user:jacob:rwx
user:jason:rwx
group::r-x
group:www-data:rwx
mask::rwx
other::r-x
[jacob@macbook-debian ~/Projects/test] chmod 0755 bin/testfile
chmod: changing permissions of 'bin/testfile': Operation not permitted
Run Code Online (Sandbox Code Playgroud)