Answer the question
In order to leave comments, you need to log in
How to set permissions on the /var/www folder?
Hello.
It is necessary to enable a normal user to edit folders and files in the /var/www directory. I
'm used to transferring any files directly to a folder on Windows, but it's still inconvenient with the terminal.
Advise how to give the rights. Second day on Ubuntu.
Linux Ubuntu 14.04.
Answer the question
In order to leave comments, you need to log in
First, create a group:
Then add yourself to this group:
Then give the created group permission to write to the directory:
sudo chown -R root:groupname /var/www
sudo chmod 775 /var/www
Giving execute permissions to files is potentially dangerous.
All directories should have permissions 775 and files 664, so:
find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question