KenCunningham
Technical User
Hi - Happy New Year to all those it applies to!
I'm trying to set up a test environment but have hit a snag when trying to refresh it from a live one. Basically two 'administrative' users have been set up on both machines, but their uids and groupids are not the same. For example:
On machine1 user1 has a uid of 202 and a primary group of 202, whereas on machine2 user1 has a uid of 204 and a groupid of 203.
The same software and filesystems are installed on each machine. Is it possible to change the uid and groupid on machine2 so that it matches that on machine1 (I have confirmed that there are no other users with the same target uid/groupid on machine2). I know in some other flavours of *nix this has caused me grief when the software has already been installed (to the extent that we had to write a routine to find and change the 'lost' ones), but wondered whether anyone has experienced the same problem in AIX and come up with a solution. Of course, it would be great if smitty could do this (I haven't tried - didn't want the fallout if it didn't!) simply by resetting the userid and groupid there - does anyone know whether smitty is clever enough to do this? Any and all contributions gratefully received.
I'm trying to set up a test environment but have hit a snag when trying to refresh it from a live one. Basically two 'administrative' users have been set up on both machines, but their uids and groupids are not the same. For example:
On machine1 user1 has a uid of 202 and a primary group of 202, whereas on machine2 user1 has a uid of 204 and a groupid of 203.
The same software and filesystems are installed on each machine. Is it possible to change the uid and groupid on machine2 so that it matches that on machine1 (I have confirmed that there are no other users with the same target uid/groupid on machine2). I know in some other flavours of *nix this has caused me grief when the software has already been installed (to the extent that we had to write a routine to find and change the 'lost' ones), but wondered whether anyone has experienced the same problem in AIX and come up with a solution. Of course, it would be great if smitty could do this (I haven't tried - didn't want the fallout if it didn't!) simply by resetting the userid and groupid there - does anyone know whether smitty is clever enough to do this? Any and all contributions gratefully received.