Finding Information About a User on AIX

For each NetWare® user accessing files through the NetWare server, you need to know both the user's user identification number (UID) and the group identification number (GID) of the user's primary login group.

This information is stored in the passwd file. This file is stored in the /etc directory. You can transfer the passwd file to the NetWare server using the UNICON utility's FTP function (see "Copying a File from a Remote Host") or manually obtain the information for each user as described in the following sections.


Displaying User Information

To display a list of the current user accounts and UID numbers, use the following procedure:

  1. Start SMIT by entering the following command:

    smit <Enter>

    The utility displays the Main Menu.

  2. From the Main Menu, make the following selections:

    Security and Users
    Users
    List All Users

    SMIT lists all user accounts, assigned UIDs, and login shell.

To obtain the user's primary GID, use the procedure in the following section, "Compiling a List of User Names with UIDs and Primary GIDs."


Compiling a List of User Names with UIDs and Primary GIDs

If your AIX host has a large passwd file, you may want to create a file listing every user and the user's corresponding UID and GID. Create this list using the awk command.

The following example creates a file containing a three-column list of user names, UIDs, and GIDs. The list is stored in the host's /tmp directory.

awk `{FS=”:”;print $1,$3,$4}'

/etc/passwd /tmp/userinfo <Enter>

The file created by the example contains a list that looks like this:

root 0 1

nobody 65534 65534

daemon 1 1

bin 3 3

joeuser 1848 720