passwd Linux Commands

What is Linux passwd Command?

Explanation

passwd COMMAND:

passwd command is used to change your password.

SYNTAX :


passwd [options]

OPTIONS:


-a Show password attributes for all entries.
-l Locks password entry for name.
-d Deletes password for name. The login name will not be prompted for password.
-f Force the user to change password at the next login by expiring the password for name.

EXAMPLE:


  1. passwd

    Entering just passwd would allow you to change the password. After entering passwd you will receive the following three prompts:

    Current Password:
    New Password:
    Confirm New Password:

    Each of these prompts must be entered correctly for the password to be successfully changed.


Ask Questions

Ask Question