[wellylug] Owner and group IDs

andrej at paradise.net.nz andrej at paradise.net.nz
Thu Dec 15 14:17:59 NZDT 2005


Quoting "E.Chalaron" <e.chalaron at xtra.co.nz>:

> 
> Hi there
> Got my rsync working fine at least manually, though the o/g ids # are 
> different over the different machines... (yes I know !!). Can I change a
> user ID on A to match its number on B without affecting the all system on A ?
You can use usermod -u <ID of choice> <username>
if the ID isn't taken.  That will modify /etc/passwd
and the ownerships on /home/<username> ... if the user
has other files somewhere else you'll have to e.g. use
find to modify those.

find -uid <old UID> -exec chown <username> {} \;

If it's a system user I'd suggest you don't :)



> Thanks
> E
Cheers,
Andrej




More information about the wellylug mailing list