Professional Documents
Culture Documents
user
User's creation was covered by question 008
Question:
Allow davis (and only davis) to get full access to john's home directory.
This question is somehow problematic to me. From the way it is constructed it seems that
simple:
should suffice.
In order to extend the possibility to add additional users to be able to operate on folders and
files there is a concept of ACL. They are set using the command setfacl.
In the given case we can use below command to achieve what we want (however this adds the
ownership not replaces it)
Above commands are changing existing files and folders (with -R making it recursive).
However if we want to make it applicable to the new files and folders there must be d: (default)
prefix used. So the final command should look like:
Additional comment:
ACLs are indicated by the '+' (plus) sign at the end of the owning folder (this is the listing
from /home folder):
Removal of ACLs is achieved also via setfacl command but with proper flag (see man pages for
examples)