File permission

Originally posted on Decembre 1st, 2005 on another blog of mine.

The question was: how can I change permission of a tree having the directories all in 777 and files in 664

chmod -R 777 theDir && find theDir/. ! -type d -exec chmod 664 '{}' \;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s