How can the UID and GID for existing users be changed in ACF2? Are any rebuild commands required to make the OMVS UID and GID changes take effect?
The UID for a user is stored in an OMVS Profile record for the user in the ACF2 INFOSTG database. The UID for an existing user can be changed by issuing a CHANGE command like follows:
SET P(USER) DIV(OMVS)
CHANGE logonid UID(uid_number)
If this command is issued on a shared database system, then the following commands must be issued on all systems that share the database for the change to take effect upon the next time a user logs on:
F ACF2,REBUILD(USR),CLASS(P),DIVISION(OMVS)
F ACF2,OMVS
The default GID for a user is assigned via the GROUP parameter on the logonid record and any supplemental GIDs are assigned to a user via TGR resource rules.
To change the default group for a user, here are the ACF2 commands:
SET LID
CHANGE logonid GROUP(groupname)
The user must logoff and back on for this change to take effect.
Groupname to GID assignments are found in the GROUP Profile Record. You can use a SHOW OMVS GROUP(group_number) command to see what the groupname is for a particular GID.
The following REBUILD command only needs to be done if changing the GROUP Profile record itself (changing the groupname to GID mapping):
F ACF2,REBUILD(GRP),CLASS(P)
F ACF2,OMVS