Présentation
Vérifie que les informations d'authentification locales sont correctes.
Syntax
pwdck { -p | -n | -t | -y } { ALL | User ... }
Description
The pwdck command verifies the correctness of the password information in the user database files by checking the definitions for ALL the users or for the users specified by the User parameter. If more than one user is specified, there must be a space between the names.
Note: This command writes its messages to stderr.
You must select a flag to indicate whether the system should try to fix erroneous attributes. The following attributes are checked for locally defined users in the/etc/passwd file:
Attributes checked in the /etc/security/passwd file are:
Attributes checked in the /etc/security/user file are:
Flags
-n | Reports errors but does not fix them. |
-p | Fixes errors but does not report them. |
-t | Reports errors and asks if they should be fixed. |
-y | Fixes errors and reports them. |
Security
Access Control: This command should grant execute (x) access to the root user and members of the security group. The command should be setuid to the root user, to read and write the authentication information, and have the trusted computing base attribute.
Files Accessed:
Mode | File |
---|---|
rw | /etc/passwd |
r | /etc/security/user |
rw | /etc/security/passwd |
r | /etc/security/login.cfg |
Auditing Events:
Event | Information |
---|---|
PASSWORD_Check | user, error/fix, status |
PASSWORD_Ckerr | file/user, error, status |
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Examples
- To verify that all local users have valid passwords, enter:
pwdck -y ALLThis reports errors, and fixes them.
- To ensure that user ariel has a valid stanza in the /etc/security/passwd file, enter:
pwdck -y ariel
Files
/usr/bin/pwdck | Contains the pwdck command. |
/etc/passwd | Contains the basic user attributes. |
/etc/security/passwd | Contains actual passwords and security information. |
/etc/security/user | Contains the extended attributes of users. |
/etc/security/login.cfg | Contains configuration information and password restrictions. |
Related Information
The grpck command, mkpasswd command, sysck command, usrck command.