On Fri, 21 Jul 2006 12:54:16 +0200
Etaoin Shrdlu wrote:

> On Friday 21 July 2006 12:02, Arnau Bria wrote:

> > could someone explain which is the way of changing user id and that
> > user doesn't lose its files?
> 
> You can use find to chown all files owned by the user to the new uid.
> 
> Untested example (suppose old uid is 100):
> 
> # usermod -u 120 cyrus
> # find / -user 100 -exec chown cyrus \{\} \;
[...]

I was thinking in something like this, but I supposed there should be a
"better" way...

thanks for the reply.


-- 
Arnau Bria
http://blog.emergetux.net
La vida es una aplastante derrota tras otra hasta que 
acabas deseando que se muera Flanders.
~Homer J. Simpson~
-- 
[email protected] mailing list

Reply via email to