[0m


PASSWD(1)	    UNIX Programmer's Manual		PASSWD(1)



[1mNAME
     [0mchfn, chsh, passwd - change password information
     ypchfn, ypchsh, yppasswd - change Network Information Ser-
     vice (NIS) passwd information

[1mSYNOPSIS
     passwd [0m[ [1m-f [0m] [ [1m-s [0m] [ [1m-y [0m] [ name ]

[1mDESCRIPTION
     [0mThis command changes (or installs) a password, login shell
     ([1m-s [0moption), or GECOS information field ([1m-f [0moption) associ-
     ated with the user _n_a_m_e (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 fore-
     stall 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 /_e_t_c/_p_a_s_s_w_d file, but
     is in the NIS passwd file then _y_p_p_a_s_s_w_d_d(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 /_e_t_c/_p_a_s_s_w_d
     , then use either the [1m-y [0moption or use the `_y_p' prefix to
     the program name.

     When altering a login shell, _p_a_s_s_w_d 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
     /_e_t_c/_s_h_e_l_l_s unless you are the super-user.  If /_e_t_c/_s_h_e_l_l_s
     does not exist, the only shells that may be specified are
     /_u_s_r/_b_i_n/_s_h and /_u_s_r/_b_i_n/_c_s_h.

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

     When altering the GECOS information field, _p_a_s_s_w_d displays
     the current information, broken into fields, as interpreted
     by the _f_i_n_g_e_r(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



Printed 4/12/91     Revision 1.9 of 09/10/90			1






PASSWD(1)	    UNIX Programmer's Manual		PASSWD(1)



     simply by typing a carriage return.  To enter a blank field,
     the word ``none'' may be typed.  Below is a sample run:

	  [1mName [Biff Studsworth II]:
	  Room number (Exs: 597E or 197C) []: [0m521E
	  [1mOffice Phone (Ex: 1632) []: [0m1863
	  [1mHome Phone (Ex: 987532) [5771546]: [0mnone


     _P_a_s_s_w_d allows phone numbers to be entered with or without
     hyphens.  It is a good idea to run _f_i_n_g_e_r 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.

[1mFILES
     [0m/etc/passwd    The file containing all of this information
     /etc/shells    The list of approved shells

[1mSEE ALSO
     [0mlogin(1), finger(1), passwd(5), crypt(3), yppasswdd(8C)
     Robert Morris and Ken Thompson, _U_N_I_X _p_a_s_s_w_o_r_d _s_e_c_u_r_i_t_y

[1mBUGS
     [0m_p_a_s_s_w_d can only change network information services shell
     and GECOS information if the _y_p_p_a_s_s_w_d_d(8C) is running on an
     Acorn machine.



























Printed 4/12/91     Revision 1.9 of 09/10/90			2



[0m