Contains password information.
The /etc/security/passwd file is an ASCII file that contains stanzas with password information. Each stanza is identified by a user name followed by a : (colon) and contains attributes in the form Attribute=Value. Each attribute is ended with a new line character, and each stanza is ended with an additional new line character.
Each stanza can have the following attributes:
When the passwd or pwdadm command updates a password, the command adds values for the password and lastupdate attributes and, if used to change another user's password, for the flags ADMCHG attribute.
Access to this file should be through the system commands and subroutines defined for this purpose. Other accesses may not be supported in future releases. Users can update their own passwords with the passwd command, administrators can set passwords and password flags with the pwdadm command, and the root user is able to use the passwd command to set the passwords of other users.
Refer to the "Files" section for information on where attributes and other information on users and groups are stored.
Although each user name must be in the /etc/passwd file, it is not necessary to have each user name listed in the /etc/security/passwd file. If the authentication attributes auth1 and auth2 are so defined in the /etc/security/user file, a user may use the authentication name of another user. For example, the authentication attributes for user tom can allow that user to use the entry in the /etc/security/passwd file for user carol for authentication.
Access Control: This file should grant read (r) and write (w) access only to the root user.
Event | Information |
---|---|
S_PASSWD_READ | file name |
S_PASSWD_WRITE | file name |
The following line indicates that the password information in the /etc/security/passwd file is available only to the root user, who has no restrictions on updating a password for the specified user:
flags = ADMIN,NOCHECK
An example of this line in a typical stanza for user smith follows:
smith: password = MGURSj.F056Dj lastupdate = 623078865 flags = ADMIN,NOCHECK
The password line shows an encrypted password. The lastupdate line shows the number of seconds since the epoch that the password was last changed. The flags line shows two flags: the ADMIN flag indicates that the information is available only to the root user, and the NOCHECK flag indicates that the root user has no restrictions on updating a password for the specified user.
This file is part of Base Operating System (BOS) Runtime.
/etc/security/passwd | Specifies the path to the file. |
/etc/passwd | Contains basic user attributes. |
/etc/security/user | Contains the extended attributes of users. |
/etc/security/login.cfg | Contains configuration information for login and user authentication. |
The login command, passwd command, pwdadm command, su command.
The ftpd daemon, rlogind daemon.
The ctime subroutine, endpwdb subroutine, getuserpw subroutine, putuserpw subroutine, setpwdb subroutine.
List of Time Data Manipulation Services, Security Administration in AIX Version 4.3 System Management Concepts: Operating System and Devices.