Re: script to find files owned by particular user and replac…

Página Principal
Anexos:
Mensagem como email
+ (text/plain)
+ (text/html)
+ (text/plain)
Apagar esta mensagem
Responder a esta mensagem
Autor: JD Austin
Data:  
Para: Main PLUG discussion list
Assunto: Re: script to find files owned by particular user and replace with another uid
Craig White wrote:
> Anybody have a script that finds file say owned by uid=1010 and replace
> owner with uid=1020?
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

cd to top directory then:
find . -uid 1010 -print0 | xargs chown 1020

If you want to change the group too:
find . -uid 1010 -print0 | xargs chown 1020:1020

--
JD Austin
Twin Geckos Technology Services LLC
email:
http://www.twingeckos.com
phone/fax: 480.288.8195

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