Is it possible to create an ACL to deny access to a specific user (say jdoe
) to a specific file?
I'm not interested in the trivial solution of an ACL that gives access to the file to all users except jdoe
. This solution has the disadvantage that any user created successively in the system won't have access to the file.
Creating a group of all users except jdoe
and granting group access to the file bears the same disadvantage.
The command setfacl -x u:jdoe /path/file
won't work as it removes only created ACLs.
chmod 0604
? – adonis May 11 '16 at 15:10other
permission (which isr--
) applies, thereforejdoe
will have read access to the file. – dr_ May 11 '16 at 15:18