Skip to content

Instantly share code, notes, and snippets.

@Neolot
Last active October 22, 2018 14:33
Show Gist options
  • Save Neolot/345fe6999e51bb33600a to your computer and use it in GitHub Desktop.
Save Neolot/345fe6999e51bb33600a to your computer and use it in GitHub Desktop.
LINUX Set permissions recursively
# Chown
chown user:group /path/to/base/dir -R
# For directories only
find /path/to/base/dir -type d -exec chmod 755 {} +
# For files only
find /path/to/base/dir -type f -exec chmod 644 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment