Try this also:
find . -type d | xargs chmod [mode]
-----Original Message-----
From: Benj [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [plug] Recursive CHMOD with a twist
Joon Guillen wrote:
> Quick question: How do I chmod recursively DIRECTORIES ONLY? For
> example, I'd want to chmod the /usr dir and everything inside it, but
> ONLY the directories and not the files nor symbolic links.
# find /usr -type d -exec chmod <mode> {} \;
This might not include /usr though. Please check.
Benj
_
Philippine Linux Users Group. Web site and archives at
http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to
[EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at
http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]