Linux.com

Author Message
Joined: Jul 30, 2008
Posts: 4
Other Topics
Posted Jul 30, 2008 at 2:33:35 AM
Subject: Changing permission for all directory only
Usually we use this command below to changing permission for files & directories recursively: [code]chmod 664 -Rf *[/code] But what is the command if I want to change permission for directories only recursively? Thanks
Back to top Profile Email Website
Johannes Truschnigg

Joined Jun 15, 2008
Posts: 27

Other Topics
Posted: Jul 30, 2008 12:48:55 PM
Subject: Changing permission for all directory only
[code=xml]find /path/to/starting/directory -type d -exec chmod 775 {} +[/code] Just substitute [b]/path/to/starting/directory[/b] and [b]775[/b] according to your specific needs.

Free software. Free society. Better lives.

Back to top Profile Email Website
waro
Joined Jul 30, 2008
Posts: 4

Other Topics
Posted: Jul 31, 2008 1:27:51 AM
Subject: Changing permission for all directory only
Thank you for the answer. One question though, what is the '+' symbol at the end the command?
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya