Skip to content

Instantly share code, notes, and snippets.

@sergiohidalgo
Created April 12, 2017 19:29
Show Gist options
  • Save sergiohidalgo/427d0b4cec8723f3d6ae849de9505f26 to your computer and use it in GitHub Desktop.
Save sergiohidalgo/427d0b4cec8723f3d6ae849de9505f26 to your computer and use it in GitHub Desktop.
Permisis directorios unix
# Poner todos los subfolder de un folder a 755:
find . -type d -exec chmod 755 {} \;

# Todos los archivos a 644:
find . -type f -exec chmod 644 {} \;

#Establecer solo los archivos que terminen con .php a 644:
find . -name \*\.php -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment