Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 That will make you the owner of… 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… when done. Thanks! – Arjan Nov 15 '09 at 14:37

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

You must log in to answer this question.