Documentation Wiki

Linux permissions

To set permissions so everyone can write to a folder, like umask=0000.

Set root as owner

sudo chown -R root:root /folder/path

The next 3 lines are the same as doing chmod -R 777 /folder/path

sudo setfacl -R -m u::rwx /folder/path
sudo setfacl -R -m g::rwx /folder/path
sudo setfacl -R -m o::rwx /folder/path

Set the default permissions for any new files that get created

sudo setfacl -R -m d:u::rwx /folder/path
sudo setfacl -R -m d:g::rwx /folder/path
sudo setfacl -R -m d:o::rwx /folder/path

To create a secret folder that only specified users can access

sudo mkdir /secret/folder
sudo chmod 700 /secret/folder
setfacl -R -m u:user1:rwx /secret/folder
setfacl -R -m u:user2:rwx /secret/folder