Skip to content

Instantly share code, notes, and snippets.

@juizmill
Created December 24, 2019 11:06
Show Gist options
  • Save juizmill/05c3f9f5a79f8e69fff60fe3f570e5d4 to your computer and use it in GitHub Desktop.
Save juizmill/05c3f9f5a79f8e69fff60fe3f570e5d4 to your computer and use it in GitHub Desktop.
# permissao de pasta e arquivos
find /var/www/dashboard/ -type f -exec chmod 644 {} \;
find /var/www/dashboard/ -type d -exec chmod 755 {} \;
chown -R 1000:www-data /var/www/dashboard/
chmod g+s /var/www/dashboard/
chmod g+w /var/www/dashboard/
#criar Grupo maquina local
sudo groupadd -g 1010 www-data
# docker
usermod -g root www-data
groupdel www-data
groupadd -g 1010 www-data
usermod -aG www-data www-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment