Querying the password validity period of a component running user (human-machine user or machine-machine user):
cd /opt/Bigdata/client
source bigdata_env
kadmin -p kadmin/admin
The default password of user kadmin/admin is Admin@123. Change the password upon your first login or as prompted and keep the new password secure.
getprinc Internal system username
Example: getprinc user1
kadmin: getprinc user1 ...... Expiration date: [never] Last password change: Sun Oct 09 15:29:54 CST 2022 Password expiration date: [never] ......
Querying the password validity period of an OS user:
chage -l Username
For example, to view the password validity period of user root, run the chage -l root command. The command output is as follows:
[root@xxx ~]#chage -l root Last password change : Sep 12, 2021 Password expires : never Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7