Add User to Group & Add Permissions

I need to add permissions to a user to be able to access my webserver files (/var/www/html).

To do this first:

usermod -a -G www-data YOUR_USER

Then make sure to change the folder permissions to allow the Group users to do what ever you want.

This is done by

chmod XXX /folder

Being the middle X the one controlling the group permissions.


Leave a Reply

Your email address will not be published. Required fields are marked *