Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

finger(1)

passwd(5)

crypt(3)

yppasswdd(8C)

PASSWD(1)  —  UNIX Programmer’s Manual

NAME

chfn, chsh, passwd − change password information
ypchfn, ypchsh, yppasswd − change Network Information Service (NIS) passwd information

SYNOPSIS

passwd [ −f ] [ −s ] [ −y ] [ name ]

DESCRIPTION

This command changes (or installs) a password, login shell (−s option), or GECOS information field (−f option) associated with the user name (your own name by default). 

When altering a password, the program prompts for the current password and then for the new one.  The caller must supply both.  The new password must be typed twice to forestall mistakes. 

New passwords must be at least four characters long if they use a sufficiently rich alphabet and at least six characters long if monocase.  These rules are relaxed if you are insistent enough. 

Only the owner of the name or the super-user may change a password; the owner must prove he knows the old password. 

If your password is not in the local /etc/passwd file, but is in the NIS passwd file then yppasswdd(8C) will be requested to change your NIS password. This may not change your password immediately, since the daemon must distribute the new passwd file to all the servers. If you wish to change your NIS entry and also have an entry in /etc/passwd , then use either the -y option or use the ‘yp’ prefix to the program name. 

When altering a login shell, passwd displays the current login shell and then prompts for the new one.  The new login shell must be one of the approved shells listed in /etc/shells unless you are the super-user.  If /etc/shells does not exist, the only shells that may be specified are /usr/bin/sh and /usr/bin/csh.

The super-user may change anyone’s login shell; normal users may only change their own login shell. 

When altering the GECOS information field, passwd displays the current information, broken into fields, as interpreted by the finger(1) program, among others, and prompts for new values. These fields include a user’s “real life” name, office room number, office phone number, and home phone number. Included in each prompt is a default value, which is enclosed between brackets. The default value is accepted simply by typing a carriage return.  To enter a blank field, the word “none” may be typed.  Below is a sample run:

Name [Biff Studsworth II]:
Room number (Exs: 597E or 197C) []: 521E
Office Phone (Ex: 1632) []: 1863
Home Phone (Ex: 987532) [5771546]: none

Passwd allows phone numbers to be entered with or without hyphens.  It is a good idea to run finger after changing the GECOS information to make sure everything is setup properly. 

The super-user may change anyone’s GECOS information; normal users may only change their own. 

FILES

/etc/passwdThe file containing all of this information
/etc/shellsThe list of approved shells

SEE ALSO

login(1), finger(1), passwd(5), crypt(3), yppasswdd(8C)
Robert Morris and Ken Thompson, UNIX password security

BUGS

passwd can only change network information services shell and GECOS information if the yppasswdd(8C) is running on an Acorn machine.

4th Berkeley Distribution  —  Revision 1.9 of 09/10/90

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