Skip to content

Instantly share code, notes, and snippets.

@palawer
Created October 21, 2022 10:15
Show Gist options
  • Save palawer/fe6b5aab82f81047dafa340e3dbcf7de to your computer and use it in GitHub Desktop.
Save palawer/fe6b5aab82f81047dafa340e3dbcf7de to your computer and use it in GitHub Desktop.
Add permissions on new created files in this folder
chown www-data.www-data /root/folder
chmod g+w /root/folder
chmod g+s /root/folder
setfacl -d -m u::rwX,g::rwX,o::- /root/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment