![Add a user to the Apache WWW-Data group on Linux and Ubuntu](https://ytimg.googleusercontent.com/vi/JuYfEq4VIWQ/hqdefault.jpg)
Add a user to the Apache WWW-Data group on Linux and Ubuntu
This is a quick tutorial on how you can add a user to the Apache WWW-Data group on Linux and Ubuntu. This will allow you to connect via SFTP or FTP and make changes to the /var/www/ or public_html folder without permission denied errors. This guide covers both usermod and chmod settings.
Reference
sudo chmod 775 –R /var/www/
sudo usermod –a –G www-data your username
identify your username
group your username
Relevant links
chmod: https://help.ubuntu.com/community/FilePermissions
user mod: http://manpages.ubuntu.com/manpages/hardy/en/man8/usermod.8.html
Please take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments