Skip to content

Instantly share code, notes, and snippets.

@marcelosantos
Last active December 1, 2016 17:37
Show Gist options
  • Save marcelosantos/023c195f3e0c7ae89a9c671de82813da to your computer and use it in GitHub Desktop.
Save marcelosantos/023c195f3e0c7ae89a9c671de82813da to your computer and use it in GitHub Desktop.
Script para aplicar permissões em arquivos e diretórios
# Script para aplicar permissões em arquivos e diretórios
echo "755 em diretorios"
find $1 -type d -exec chmod 755 {} \;
echo "644 nos arquivos"
find $1 -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment