Displays user account attributes.
lsuser [ -c | -f ] [ -a List ] { ALL | Name [ ,Name ] ... }
The lsuser command displays the user account attributes. You can use this command to list all attributes of all the system users or all the attributes of specific users. Since there is no default parameter, you must enter the ALL keyword to see the attributes of all the users. By default, the lsuser command displays all user attributes. To view selected attributes, use the -a List flag. If one or more attributes cannot be read, the lsuser command lists as much information as possible.
Note: If you have a Network Information Service (NIS) database installed on your system, some user information may not appear when you use the lsuser command.
By default, the lsuser command lists each user's attributes on one line. It displays attribute information as Attribute=Value definitions, each separated by a blank space. To list the user attributes in stanza format, use the -f flag. To list the information as colon-separated records, use the -c flag.
You can use the Web-based System Manager Users application (wsm users fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit lsusers fast path to run this command.
Access Control: This command should be a general user program with execute (x) access for all users. Since the attributes are read with the access rights of the user who invokes the command, some users may not be able to access all the information. This command should have the trusted computing base attribute.
Mode | File |
---|---|
r | /etc/passwd |
r | /etc/security/user |
r | /etc/security/user.roles |
r | /etc/security/limits |
r | /etc/security/environ |
r | /etc/group |
r | /etc/security/audit/config |
lsuser -f -a id pgrp groups admgroups smithInformation similar to the following appears:
smith: ID=2457 pgrp=system groups=system,finance,staff,accounting admgroups=finance,accounting
lsuser -c -a id home groups smithInformation like the following appears:
# name: ID:home:groups smith: 2457:/home/smith:system,finance,staff,accounting
lsuser smithAll the attribute information appears, with each attribute separated by a blank space.
lsuser ALLAll the attribute information appears, with each attribute separated by a blank space.
/usr/sbin/lsuser | Contains the lsuser command. |
/etc/passwd | Contains basic user information. |
/etc/security/limits | Defines resource quotas and limits for each user. |
/etc/security/user | Contains the extended attributes of users. |
/etc/security/user.roles | Contains the administrative role attributes of users. |
/etc/security/environ | Contains the environment attributes of users. |
/etc/group | Contains basic group attributes. |
/etc/security/audit/config | Contains the audit configuration files. |
The chfn command, chgroup command, chgrpmem command, chsh command, chuser command, lsgroup command, mkgroup command, mkuser command, passwd command, pwdadm command, rmgroup command, rmuser command, setgroups command, setsenv command.
For more information about the identification and authentication of users, discretionary access control, the trusted computing base, and auditing, refer to Security Administration in AIX Version 4.3 System Management Concepts: Operating System and Devices.
Setting up and running Web-based System Manager in AIX Version 4.3 System Management Guide: Operating System and Devices.
For more information about administrative roles, refer to Administrative Roles Overview in AIX Version 4.3 System Management Concepts: Operating System and Devices.