How can I give a user permissions for all folders? So /home, /var etc.
Answer
To give a user (e.g. bob) read-permission for all folder in the /tmp/myfiles-directory:
1.) install acl
:
sudo apt-get install acl
(after running apt-get update
)
2.) give the user “bob” read-permission for eveything in (and including) the /tmp/myfiles
-directory:
setfacl -m user:bob:r -R /tmp/myfiles
3.) view the permissions on /tmp/myfiles with:
getfacl /tmp/myfiles
To answer the specific case of giving read/write/execute-permissions to everything (although: DONT EVER DO this!!!)
set eveything inside root to
setfacl -m user:bob:rwx -R /
Attribution
Source : Link , Question Author : OfficialCRUGG , Answer Author : MacMartin