Created
February 11, 2017 16:20
-
-
Save shohel/4a4a7f276a5b7489eb9bb9eb3212c13b to your computer and use it in GitHub Desktop.
The right way to directory permission for www-data in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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