Skip to content

Instantly share code, notes, and snippets.

@shohel
Created February 11, 2017 16:20
Show Gist options
  • Save shohel/4a4a7f276a5b7489eb9bb9eb3212c13b to your computer and use it in GitHub Desktop.
Save shohel/4a4a7f276a5b7489eb9bb9eb3212c13b to your computer and use it in GitHub Desktop.
The right way to directory permission for www-data in linux
First, add yourself into the group www-data
usermod -a -G www-data (your username)
Then:
chgrp www-data /home/myuser/folderA
chmod g+rwxs /home/myuser/folderA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment