Skip to content

Instantly share code, notes, and snippets.

@skobba
Created June 24, 2019 06:37
Show Gist options
  • Select an option

  • Save skobba/21c75fbc993b169f3edc6fe8db3a1060 to your computer and use it in GitHub Desktop.

Select an option

Save skobba/21c75fbc993b169f3edc6fe8db3a1060 to your computer and use it in GitHub Desktop.
File Permissions
chmod u=rx file (Give the owner rx permissions, not w)
chmod go-rwx file (Deny rwx permission for group, others)
chmod g+w file (Give write permission to the group)
chmod a+x file1 file2 (Give execute permission to everybody)
chmod g+rx,o+x file (OK to combine like this with a comma)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment