1

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?

2

Try doing this :

cd /the/dir
find . -perm 777 -exec chmod 755 {} +
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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