Re: What syntax for global 'chown' fix?

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: Eric Shubert
Date:  
À: plug-discuss
Sujet: Re: What syntax for global 'chown' fix?
wrote:
> 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
>


find dir -type f -exec chmod user:group {} \;
find dir -type d -exec chmod user:group {} \;

--
-Eric 'shubes'

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