I have some directories, with following permissions:
drwxr-xr-x 18 user1 root 4096 Oct 27 11:25 /home/test1/test2 drwxr-xr-x 24 user1 root 4096 Oct 21 08:38 /home/test1 drwxr-xr-x 492 root root 12288 Nov 17 01:31 /home drwxr-xr-x 23 root root 4096 Nov 6 18:46 /
If I understand right, permission of
/home says that only root can add/delete files (or directories) in this directory, but then there's the directory
test1 which has
user1 as its owner. That means that user
user1 can add/delete files (or directories) in
/home/test1. Does this mean that directory permission of
/home is only valid till its immediate children and not its all descendants (grandchildren and so on)?
And it must be only root who let
user1 be the owner of its child
/home/test1 and from then on,
user1 can control owners of its children (and all descendants)?