PWGMERGE(8,C) AIX Commands Reference PWGMERGE(8,C) ------------------------------------------------------------------------------- pwgmerge PURPOSE Merges password and group files from mapping tables. SYNTAX pwgmerge new-password-file new-group-file filesystem-map-table ---| Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces. DESCRIPTION The pwgmerge command reads the map and data tables produced by the pwgmap command to produce merged password and group files. These files must reside in the directory in which pwgmap was executed and provide the basis for updating the file system's inodes with any new owner or group values. The new file parameters to pwgmerge are the path names where the new password and group files will be placed. The file system map parameter is user generated. It contains a list of file systems followed by either a 1 or a 2 to determine whether it is to be associated with the first or second password and group files entered to pwgmap. The file might contain: /luke/dev/hd02 1 /luke/dev/hd03 2 /c3p0/dev/hd14 2 /c3p0/dev/hd12 1 /r2d2/dev/hd13 2 The disk inodes of each file system listed in the map file will be updated with the new uid/gid values. These file systems should not be mounted to prevent any conflicting updates from occurring. When invoking this program, the user should have superuser authority. Since identical users on different cluster sites may have different home directories, it is the responsibility of the system administrator to move files appropriately. To assist in this process, pwgmerge produces a list of conflicting home directories (pw.conflicts). Additional conflicts may arise between two identical users having different group ids. These conflicts will be printed in the list as well. The actual values output in the new password file will come from the first parameter given in pwgmap. No list will be generated should any conflicts arise between passwords or shells. The values used for these will come from the first password file. Before the merge, identical users on different sites, may not necessarily belong to the same groups in their respective /etc/group files. Group Processed November 8, 1990 PWGMERGE(8,C) 1
PWGMERGE(8,C) AIX Commands Reference PWGMERGE(8,C) membership after the merge will be the union of all previous memberships. If groups and/or users have been folded (the "changes" field is "fold"), then before running this program, it is important that the "new gid", "new uid", "new group", and "new login" fields are modified to contain the login/group values to which they are being mapped. The pwgmerge command uses these "new" fields to determine which users and groups are to be considered identical during construction of the merged password and group files. After creating and installing the new password file, the administrator should run the mkpasswd command to produce the /etc/passwd.pag and /etc/passwd.dir files. RELATED INFORMATION See the following command: "pwgmap" and "mkpasswd." See the passwd file in AIX Operating System Technical Reference. Processed November 8, 1990 PWGMERGE(8,C) 2