To modify the password of other users, specify the target username (E.g. Passwd: all authentication tokens updated successfully. To change the password of the current user, simply run the passwd command without any options like below: $ passwdĮnter the password of the current user and then enter the new password twice to change the password. We will publish a detailed guide for passwd command examples in a separate guide soon. In this guide, we only learn about changing the users password in Linux, so we skip examples for the most options. ![]() Table - passwd command options and their descriptions ![]() Indicates the number of days for which the user gets alerts to change their password before it actually expires. Indicates the maximum number of days of password validity before the user password expires and it must be changed.ĭisplay the status information of an user account. ![]() Specify the number of days that must elapse before the password can be changed. Remove the password of an user without deleting the user.įorce the user to change the password at next login.ĭefine the number of days after inactivity after the password expiry and before the user account is locked. The important options of passwd command are given below: Option
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |