uid & gid problem restoring ubuntu made backup to new squeeze install

Brian Ryans's picture


Quoting Juan R. de Silva on 2011-04-21 16:36:
> I preserved the user names for both of users in a new squeeze
> installation but UID and GID are different. So, by simply using 'cp -
> a' (or rsync) I would run into problem of their mismatch.
> Is there a simple and quick way to resolve it or I'll have to go trough
> this mess manually one step at a time?

See find(1) and chown(1). If you prefer info documents, the {core,find}utils
files will be of much use.