Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

3 Answers 3

up vote 12 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 username /path/to/directory

You must have sudo privileges though!

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 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 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

Your Answer

 
discard

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

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