Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ passwd(1M) — Interactive 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

id(1M)

login(1)

passmgmt(1M)

passwd(1)

su(1M)

crypt(3C)

passwd(4)



          PASSWD(1M)           INTERACTIVE UNIX System           PASSWD(1M)



          NAME
               passwd - change login password and password attributes

          SYNOPSIS
               passwd [ name ]

               passwd -l [ -f ] [ -x max ] [ -n min ] name

               passwd -d [ -f ] [ -x max ] [ -n min ] name

               passwd -s [ -a ]

               passwd -s [ name ]

          DESCRIPTION
               This command changes or installs login passwords and pass-
               word attributes associated with the login name.  The options
               to passwd are:

               -l   Locks password entry for name.

               -d   Deletes password for name.  The login name will not be
                    prompted for password.

               -x   Set maximum field for name.  The max field contains the
                    number of days that the password is valid for name.
                    The aging for name will be turned off if max is set to
                    0.

               -n   Set minimum field for name.  The min field contains the
                    minimum number of days between password changes for
                    name.

               -s   Shows password attributes for name.  The format of the
                    display will be:
                                 name status mm/dd/yy min max
                    or, if password aging information is not present,
                                          name status
                    name is the login ID of the user.  status is the pass-
                    word status of name.  PS stands for passworded or
                    locked, LK stands for locked, and NP stands for no
                    password.  mm/dd/yy is the date password was last
                    changed for name.  min is the minimum number of days
                    required between password changes for name.  max is the
                    maximum number of days the password is valid for name.

               -a   Show password attributes for all entries.  Use only
                    with -s option; name must not be provided.

               -f   Force the user to change password at the next login by
                    expiring the password for name.

               Privileged users may change any password; hence, passwd does


          Rev.                                                       Page 1





          PASSWD(1M)           INTERACTIVE UNIX System           PASSWD(1M)



               not prompt privileged users for the old password.
               Privileged users are not forced to comply with password
               aging and password construction requirements.  A privileged
               user can create a null password by entering a carriage
               return in response to the prompt for a new password.


















































          Rev.                                                       Page 2





          PASSWD(1M)           INTERACTIVE UNIX System           PASSWD(1M)



          FILES
               /etc/passwd
               /etc/shadow
               /etc/opasswd
               /etc/oshadow
               /etc/default/passwd

          SEE ALSO
               id(1M), login(1), passmgmt(1M), passwd(1), su(1M).
               crypt(3C), passwd(4) in the INTERACTIVE SDS Guide and
               Programmer's Reference Manual.

          DIAGNOSTICS
               The passwd command exits with one of the following values:

               0         SUCCESS.

               1         Permission denied.

               2         Invalid combination of options.

               3         Unexpected failure.  Password file unchanged.

               4         Unexpected failure.  Password file missing.

               5         Password file(s) busy.  Try again later.

               6         Invalid argument to option.



























          Rev.                                                       Page 3



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026