Wrong uid, gid after copying.

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Wrong uid, gid after copying.

Post by ^rooker »

[PROBLEM]
Files/Directories having wrong userids and/or groupids after copying data on a disk mounted in a foreign system (e.g. Knoppix)

[EXPLANATION]
The problem is, that when copying files using 'cp', the system resolves names to IDs, but uses the IDs of the currently booted system (which was in our case Knoppix).

[SOLUTION]
...avoid using 'cp' when copying files for a system which is NOT the one booted. :))
OR make sure that the IDs of the two systems match.
Post Reply