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

I am trying to run chown on a directory and I get a permission denied. I have tried running sudo and also running the command as root.

If root doesn't have permission, how can I change the owner of this directory?


share|improve this question
What filesystem type is the drive that the directory is on? – Gav Apr 12 '13 at 0:36
Is the directory .gvfs? – Eliah Kagan Apr 12 '13 at 5:46

It sounds like you are trying this on a read-only filesystem. (mounted with option ro, or some other way) If that is the case, there is no way you can achieve what you are trying other than changing the read/write status of the filesystem in question.

With more details we can help you more: at a minimum, look at the full path name and see how your filesystems are mounted (output of mount). You can post both in your question by editing it and we might be able to help you more.

share|improve this answer

Your Answer


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.