An administrator compares the lsuser command output with the contents of /etc/passwd. The lsuser output shows 116 user accounts, while /etc/passwd contains only 16.
# lsuser -a ALL | wc -l
116
# wc -l /etc/passwd
16
What could explain this?
A.
/etc/passwd contains only system accounts, all other users are in /etc/security/user
B.
/etc/passwd doesn't play any role on AIX, the information is stored in /etc/security/passwd
C.
/etc/passwd contains only local accounts, for other users an external user registry like LDAP is used
D.
/etc/passwd doesn't contain any users, only references to other authentication mechanisms
The lsuser command queries the AIX user database through the configured loadable authentication modules, so it returns accounts from every registry in use. /etc/passwd holds only the locally defined accounts. When AIX is configured as an LDAP client, users defined in the directory are visible to lsuser, id and login but have no entries in the local file.
Technical Deep Dive: Accounts stored in LDAP carry user attributes such as registry=LDAP and SYSTEM=LDAP. The registry order is controlled by the SYSTEM attribute and the stanzas in /usr/lib/security/methods.cfg. To confirm the split, compare lsuser -R files ALL with lsuser -R LDAP ALL, and check the client with lsldap and ls-secldapclntd. /etc/security/user holds attributes for local accounts and is not a store of other users, and /etc/security/passwd stores password hashes, not account existence, which eliminates the other options.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit