-JhAzEr- wrote:
> Is it possible to retain a directory (and all its subdirectories) permission using
>chmod? I've searched Jijo's Lurker regarding our previous discussion about chmod but
>to no avail. Here's the scenario:
>
> I have directory A, under it is Directory B and C.
> I just want to change directory A and B's permission.
> Directory C remains untouched.
>
> is it possible? ...with only a single (chmod) command ;)
chmod <mode> A A/B
or more complicated but more general,
find A -maxdepth 1 -type d -exec chmod <mode> {} \;
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]