RE: What syntax for global 'chown' fix?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Taylor, Kaia
Date:  
To: Main PLUG discussion list
Subject: RE: What syntax for global 'chown' fix?

I would do this first to avoid any surprises with links, if there are
any:
find [dir] -type l | more
Then:
find [dir] -exec chown user:group {} \;


[dir] being your top dir


Regards,
Kaia Taylor
DevSA group -- tis-dco-devsa - jumpword devsa
http://dco-sps.schwab.com/sites/devsa/welcome desk 602-977-5157 pager
or white pages All e-mail sent to or from this
address will be received by the Charles Schwab corporate e-mail system
and is subject to archival and review by someone other than the
recipient.

-----Original Message-----
From:
[mailto:plug-discuss-bounces@lists.plug.phoenix.az.us] On Behalf Of

Sent: Tuesday, June 08, 2010 10:04 AM
To:
Subject: What syntax for global 'chown' fix?


While the example commands below work to change permission for either a
complete system or for a complete directory and all sub-directories,
what would the syntax be for a similar command to 'chown' (change the
owner) globally or for a designated directory and and the files and
subdirectories below it?

find . -type f -print0 | xargs -0 chmod 644 find . -type d -print0 |
xargs -0 chmod 755

find dir -type f -print0 | xargs -0 chmod 644 find dir -type d -print0 |
xargs -0 chmod 744




---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss