Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How can I copy the all file permissions of a folder from owner to users?

Imagine that I have:

-rw-r-----  1 124982 5000   201 2012-06-24 06:45 documentation.html

I want to change to:

-rw-r--r--  1 124982 5000   201 2012-06-24 06:45 documentation.html
share|improve this question
up vote 1 down vote accepted

That would be either

chmod 0644 documentation.html

or you can do

chmod a+r documentation.html

To change modes recursively on a folder (i.e for each file in a folder), do:

chmod -R <mode> <path>

But be careful - this changes directory modes as well, which differ from file mode in their use of the "execute" permission.

share|improve this answer
Yes, but how can I get the values of rwx from ownser and set to all? – Victor Oct 25 '12 at 12:13
From what? What is owner in this context? – Xyon Oct 25 '12 at 12:16

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.