Change directory permissions recursively

Here's how to use the "find" command to change directory permissions recursively.

Here is a command that will let you change the directory permission of all the sub-directories. Often times you only need to change the directory permissions under a given project root, for example, to make a group writable and world readable. This cannot be done with the "chmod -R " command because this will affect files also. We can do the same using the "find" command.
find . -depth -type d -exec chmod 775 {} ;

This was first published in August 2002

Dig deeper on Enterprise User Provisioning Tools

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close