ubuntu - Deny a user access to a group-owned folder without removing him from group? -
i have group-owned folder in ubuntu. let's name finance. there 3 users in group, fin1, fin2, finx. these users ones have access folder. how can deny finx access folder without removing him group?
you create different group, make supplementary group fin1
, fin2
, not finx
, , assign group folder in question , contents.
or if that's removing finx
group main alternatives see acls , selinux. either 1 of these moving onto rather less trodden ground. both rely on directory residing on file system supports extended file attributes, if supports standard file permission bits, imply does.
the acl approach might implemented via command similar this:
setfacl --recursive -m d:u:finx:0 -m u:finx:0 /path/to/directory
i work acls, may bit off. once it's done, though, new files , subdirectories should inherit same restriction, because command sets in both access acl , default acl.
Comments
Post a Comment