Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1867  / 2 Years ago, sun, august 28, 2022, 2:20:51

Possible Duplicate:

What is the best way to add files to a website on a LAMP Server?






I have installed lamp on Ubuntu 12.04.



I try to access /var/www but it doesn't allow me to do anything as it says I don't have permissions.



I have tried:



1.

gksudo nautilus - which works but its very inconvenient way of doing things.



2.

sudo adduser ryan www-data

sudo chown -R www-data:www-data /var/www

sudo chmod g+rw /var/www



The above didn't work.



I have googled and searched this site for a solution, but all the existing possible solutions have not worked.


More From » permissions

 Answers
6

You need to use usermod.



usermod will modify your user.



You can then modify your user to be part of the www-data group.



$ sudo usermod -a -G www-data your-user


http://www.computerhope.com/unix/usermod.htm


[#38432] Sunday, August 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
motivengry

Total Points: 459
Total Questions: 112
Total Answers: 108

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
motivengry questions
Tue, Oct 4, 22, 10:02, 2 Years ago
Wed, May 31, 23, 14:33, 12 Months ago
;