Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am using ubuntu 9.10 and when i copy a folder from the desktop to the www directory from lamp it says permission denied. im not doing it through terminal but how can i make myself root level to copy and edit/delete the files that i need to.

share|improve this question
    
Please associate your accounts at stackoverflow.com/users/210956?tab=accounts That will make you the owner of superuser.com/questions/70466/… again, and allow you to comment to answers at this question again. Please read the FAQs and understand this is not a forum. Please delete the answer at superuser.com/questions/70466/… when done. Thanks! –  Arjan Nov 15 '09 at 14:37

2 Answers 2

Instead of always having to run "gksudo nautilus", lets try something easier

My www folder is not owned by root but by me, I want to be admin of the www folder, and I suppose you want the same.

So we're going to make you owner

sudo chown <your_username> <path of your www folder> -R

In my case it was

sudo chown jeffrey /var/www/ -R

This will make you the owner of the folder, -R means recursive, thus it will make you owner of all subfolders as well.

To make sure you got enough read and write rights

sudo chmod 755 <path of your www folder> -R

This will grant you read, write and execute rights, and it will grant other users the right to read and execute it, 744 won't work, because you'll get a "permission denied" error.

share|improve this answer

You can press F2 and enter gksudo nautilus if you are using the default file manager. This will run nautilus wit elevated privileges. I'd recommend against doing all operations like this though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.