/etc/shadow stores actual password in encrypted format for user’s account with additional properties related to user password. The password expiration information for a user is contained in the last 6 fields. Password expiration for a select user can be disabled by editing the /etc/shadow file
However I recommend using chage command. The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password.
To list current aging type chage command as follows:
To disable password aging / expiration for user foo, type command as follows and set:
OR
Supplement
* 鳥哥私房菜 - Linux 帳號管理
沒有留言:
張貼留言