Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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 =) –  sputnick Nov 30 '12 at 18:40

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.