Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.19 KB

025-the-passwd-command.md

File metadata and controls

55 lines (34 loc) · 1.19 KB

The passwd command

In Linux, passwd command changes the password of user accounts. A normal user may only change the password for their own account, but a superuser may change the password for any account. passwd also changes the account or associated password validity period.

Example

$ passwd

The syntax of the passwd command is :

$ passwd [options] [LOGIN]

options

-a, --all
        This option can be used only with -S and causes show status for all users.

-d, --delete
        Delete a user's password.

-e, --expire
        Immediately expire an account's password.

-h, --help
        Display help message and exit.

-i, --inactive
        This option is used to disable an account after the password has been expired for a number of days.

-k, --keep-tokens
        Indicate password change should be performed only for expired authentication tokens (passwords).

-l, --lock
        Lock the password of the named account.

-q, --quiet
        Quiet mode.

-r, --repository
        change password in repository.

-S, --status
        Display account status information.