Folder

Ubuntu Privilege: Folder

Show all the path privileges in the different path hierarchy

You can show all the privileges and owner to a specific folder path.

In order to prevent that users have lower folder’s privileges but without higher folder’s privileges.

You can check all the folder path privileges in one command.

namei -om <目錄路徑>

$ namei -om /home/kj/www
f: /home/kj/www
 drwxr-xr-x root  root  /
 drwxr-xr-x root  root  home
 drwxr-xr-x kj    kj    kj
 drwxrwxr-x kj    kj    www

Reference