Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

In the properties menu of this folder the permission is set to "root" user and group, it shows the message "you are not the owner, so you cannot change these permissions." I am indeed the owner and only user of the machine, how can I change the permissions?

share|improve this question
up vote 14 down vote accepted

This is not telling you that you don't own the computer on which the folder exists. It's telling you that you don't own the folder. This is a very different concept of ownership.

On your Ubuntu system, your user account doesn't automatically have the ability to perform any possible action--some administrative actions can only be performed by root, the superuser. However, this user is not any real person and, in Ubuntu, you don't log in as this user. Instead, Ubuntu provides facilities like sudo and gksu to perform actions as root.

You should check out the three links above. Once you've read that, if you still want to change the permissions on that folder, here's one way to do it:

  • Press Alt+F2.

  • Type in the command gksu nautilus and press Enter.

  • Now you have a file browser window running as root. You can change the permissions with this. Any program you open from this will run as root too. You should use this carefully and sparingly.

  • Make sure to close this root Nautilus window when you're done, so you don't accidentally use it for something that you don't need to be root to do.

Before you change the permissions (and/or ownership) on this folder, you should be aware that doing this to system files in Ubuntu can have negative consequences: you can make your system insecure...or even stop your system from working.

If these files have the wrong ownership/permissions because you brought them over from another system and did so as root (for example, if these are recovered documents), then go ahead.

But if these are systemwide configuration files, programs, or you're not sure what they are but you're trying to follow instructions that tell you to do something with them ...then you'll be much better off to ask specifically about them. You can edit your question or post a new question to ask if it would be safe for you to change ownership/permissions for this specific folder (provided that you can disclose what this folder is and what you are trying to accomplish).

share|improve this answer
sudo chown -R username /path/to/directory

You must have sudo privileges though!

you should use -R option to operate on files and directories recursively

share|improve this answer
Please be careful suggesting that a user change the ownership of a file that belongs to root. It probably belongs to root for a good reason. – Argusvision Oct 21 '12 at 21:48
he wanted to see what's in that folder, i told him how, though i agree with your suggestion. – Vinit Kumar Oct 23 '12 at 9:29
chown actually sets the permissions. To view the permissions you would use ls -l filename or ls -ld directory name. – Argusvision Oct 23 '12 at 10:12
Dude i know what it does..Guess you missed this part from his question how can I change the permissions? – Vinit Kumar Oct 23 '12 at 18:13
No, I caught that. Apparently I miss read your comment about seeing the content of the folder, as seeing the ownership of the folder. My apologies – Argusvision Oct 24 '12 at 0:12

You need admin privileges to accomplish that. RootSudo

share|improve this answer

protected by kos Mar 23 at 4:36

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.