MJN
January 19th, 2006, 06:44 PM
Not sure if this is the right sub-forum, but I am talking about a backup disk residing in my server... ;)
My problem is this: I recently migrated my server from Red Hat to Kubuntu and have an issue regarding the consequences of these distros using different strategies for user UIDs/GIDs. In Red Hat these start at 500, whereas ofcourse in (K)ubuntu (asper Debian policy) they start at 1000.
I have a second hdd - with an ext3 filesystem - which serves simply as a backup disc. When this is mounted under (K)ubuntu the file/directory ownerhips are being displayed numerically (i.e. 500, 501 ...) because there is no mapping for these in my passwd/group files. The consequence of this is that the users cannot access 'their' files on the backup disc because of this mismatch.
Of course, I could change the 'new' UIDs/GIDs to be the same as the old ones however I don't know what the effect of this on current files will be and don't really want to stray from the Debian stategy with regards to numbering.
My question is thus is it possible for me to 'batch convert' the ownership of the backup files to align with the new numbering e.g. change 501 to 1002, 502 to 1006 etc?
Mathew
My problem is this: I recently migrated my server from Red Hat to Kubuntu and have an issue regarding the consequences of these distros using different strategies for user UIDs/GIDs. In Red Hat these start at 500, whereas ofcourse in (K)ubuntu (asper Debian policy) they start at 1000.
I have a second hdd - with an ext3 filesystem - which serves simply as a backup disc. When this is mounted under (K)ubuntu the file/directory ownerhips are being displayed numerically (i.e. 500, 501 ...) because there is no mapping for these in my passwd/group files. The consequence of this is that the users cannot access 'their' files on the backup disc because of this mismatch.
Of course, I could change the 'new' UIDs/GIDs to be the same as the old ones however I don't know what the effect of this on current files will be and don't really want to stray from the Debian stategy with regards to numbering.
My question is thus is it possible for me to 'batch convert' the ownership of the backup files to align with the new numbering e.g. change 501 to 1002, 502 to 1006 etc?
Mathew