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

My title probably sounds more cryptic than it needs to.

I'm using ubuntu 12.04 and want to be able to change permissions on files and folders recursively to 755 but only where the permissions are currently set to 777.

Does anybody know how to do this through the terminal?

share|improve this question
up vote 2 down vote accepted

Try doing this :

cd /the/dir
find . -perm 777 -exec chmod 755 {} +
share|improve this answer
easy when you know how. Thanks – WebweaverD Nov 30 '12 at 18:35
Quite easy, yes, that's like you ask me the day of the week I'm born =) – Gilles Quenot Nov 30 '12 at 18:40

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.