Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

Ubuntu - /var/www Permission for Read/Write files

How to give permission to user to read/write files/folders in /var/www ?

Steps to get the access are as follows:

Open the terminal and run following commands on your terminal and replace USERNAME from your systems USERNAME

  • sudo chgrp USERNAME /var/www
  • sudo chmod 775 /var/www
  • sudo chown -R USERNAME /var/www/*
After running this commands just log out and log in again and you will be able to access the /var/www/ as normal with some special permissions.

Enjoy learning :)

Top #3 Articles