AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Copy user accounts

    Posted Fri September 23, 2005 12:58 PM

    Originally posted by: SystemAdmin


    I wish to copy the user accounts on one AIX node
    to a second AIX node.

    Can I do this by copying /etc/passwd and /etc/security/passwd from the source node to the destination node?

    Is there anything else I need to consider?

    Thank you for considering my question.


  • 2.  Re: Copy user accounts

    Posted Fri September 23, 2005 01:46 PM

    Originally posted by: ClusterBuster


    You'll want to copy the following:

    /etc/passwd
    /etc/security/passwd
    /etc/group
    /etc/security/group
    /etc/security/limits (if modified from default)
    /etc/security/user (ditto)

    tar these up and be careful about not changing file
    permissions.

    This has worked for me, but as they say, "your
    mileage may vary". So perhaps someone else has
    run into other files which are critical. You could
    also search Google Groups comp.unix.aix for some more info.

    http://groups.google.com/group/comp.unix.aix

    • Jon


  • 3.  Re: Copy user accounts

    Posted Tue September 27, 2005 11:32 AM

    Originally posted by: SystemAdmin


    You will also need to add the user directories or setup some type of automounting. If you have a large number of systems, you may want to start using LDAP authentication for a common repository of the AIX user information, especially if you are at AIX 5.2 or 5.3. As the previous reply stated, you may want to copy the other files, but make sure that the systems are already in sync. For example that you have the same group IDs on both systems. If you don't, then you will have to chmod all the affected files and this can be a nightmare. I guess that you know that the /etc/passwd file contains the users UID, Primary group ID, home directory and shell, while the /etc/security/passwd file has the actual encrypted passwd, and the /etc/security/user file contains the special user restrictions. The /etc/group file contains the group ID for each group as well as the members of those groups.


  • 4.  Re: Copy user accounts

    Posted Thu December 22, 2005 05:16 AM