Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ passwd(1M) — Interactive 3.2r4.1

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)  —  

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 password 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 password 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 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. 

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 INTER­ACTIVE SDS Guide and Programmer’s Reference Manual. 

DIAGNOSTICS

The passwd command exits with one of the following values:

0SUCCESS. 

1Permission denied. 

2Invalid combination of options. 

3Unexpected failure.  Password file unchanged. 

4Unexpected failure.  Password file missing. 

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

6Invalid argument to option. 

\*U  —  Version 1.0

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