Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 15991  / 3 Years ago, mon, september 20, 2021, 12:21:43

Possible Duplicate:

problems with sudo permissions - /var/lib/sudo owned by uid






I recently installed Ubuntu Server and put the GUI on so I can get the hang of Linux.
However, I can't seem to gain access to the /var/www/ folder so I can put and edit my html files...



I tried what was on this post: Change folder permissions and ownership and I still can't move files. (Except if I use nautilus)



When I tried what Ikke suggessted, it appeared to have worked (as in no errors thrown in terminal) but when I still can't move files into the folder.



If I use nautilus and look at the permissions for /var/www it lists me as the owner (is just says my username), Create and Delete files for folder access. And --- for file access. If I change file access to Read and Write it just goes back to --- once I hit Apply Permissions to Enclosed Files.



What am I missing?


More From » server

 Answers
7

/var/www is owned by root. You will need to do the following:

sudo chown user:user /var/www

Where user is your username.


[#33840] Wednesday, September 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
;