Posts Tagged with adduser

Displaying 1-1 of 1 result.
Resolved: Ubuntu Linux remove directory from root var/www directory problem
posted by admin on February 7, 2017
I try to remove folder but terminal gave error
Command and error

rm -rf /var/www/
rm: cannot remove '/var/www/': Permission denied

I try to did it before this command and the same situation

sudo chmod -R 777 /var/www/

I try to make my user superuser but still without result

sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www
Read more