Since the files involved in the following procedure are flat ASCII files and their format has not changed from V4 to V5, the users can be migrated between systems running the same or different versions of AIX (for example, from V4 to V5).
Files that can be copied over:
- /etc/group
- /etc/passwd
- /etc/security/group
- /etc/security/limits
- /etc/security/passwd
- /etc/security/.ids
- /etc/security/environ
- /etc/security/.profile
root:!:0:0::/:/usr/bin/kshWhen you copy the /etc/passwd and /etc/group files, make sure they contain at least a minimum set of essential user and group definitions.
Listed specifically as users are the following:
root, daemon, bin, sys, adm, uucp, guest, nobody, lpd
Listed specifically as groups are the following:
system, staff, bin, sys, adm, uucp, mail, security, cron, printq, audit, ecs, nobody, usr
If the bos.compat.links fileset is installed, you can copy the /etc/security/mkuser.defaults file over. If it is not installed, the file is located as mkuser.default in the /usr/lib/security directory. If you copy over mkuser.defaults, changes must be made to the stanzas. Replace group with pgrp, and program with shell. A proper stanza should look like the following:
The following files may also be copied over, as long as the AIX version in the new machine is the same:user: pgrp = staff groups = staff shell = /usr/bin/ksh home = /home/$USER
- /etc/security/login.cfg
- /etc/security/user
Once the files are moved over, execute the following:
This will clear up any discrepancies (such as uucp not having an entry in /etc/security/passwd). Ideally this should be run on the source system before copying over the files as well as after porting these files to the new system.# usrck -t ALL # pwdck -t ALL # grpck -t ALL
NOTE: It is possible to find user ID conflicts when migrating users from older versions of AIX to newer versions. AIX has added new user IDs in different release cycles. These are reserved IDs and should not be deleted. If your old user IDs conflict with the newer AIX system user IDs, it is advised that you assign new user IDs to these older IDs.
From: http://www-01.ibm.com/support/docview.wss?uid=isg3T1000231
If you found this useful, here's more on the same topic(s) in our blog:
- How to show the timestamp in your shell history in AIX 5.3
- How to change the HMC password (of user hscroot)
- File system creation time
- Prune old Docker data
- Query NTP servers
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?