[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Equivalencing usernames/ids across computers



Tony van der Hoff <tony@vanderhoff.org> wrote:
> What I was really hoping to find was some sort of mapping facility that 
> changes UIDs originating from, say, laptop from 1001 to 1003, etc.

Rsync can copy files either by uid or by username (see the --numeric-ids
option).

Personally, I'd recommend you bite the bullet and unify all your account
details. If you've accounts in the range 1000-1999 (say), start your
new set of accounts from 2000.

    find / -user 1234 -exec chown 2000 {} +
    find / -group 987 -exec chgrp 2010 {} +

Chris


Reply to: