2.11BSD/man/cat8/mkpasswd.0

Compare this file to the similar file:
Show the results in this format:




MKPASSWD(8)	    UNIX Programmer's Manual	      MKPASSWD(8)



NAME
     mkpasswd - generate hashed password table

SYNOPSIS
     mkpasswd [ -p ] passwdfile

DESCRIPTION
     _M_k_p_a_s_s_w_d is used to generated the hashed password database
     used by the password library routines (see _g_e_t_p_w_e_n_t(3)).

     The file _p_a_s_s_w_d_f_i_l_e must be in password file format (see
     _p_a_s_s_w_d(5)).  _M_k_p_a_s_s_w_d generates database files named
     ``passwdfile.pag'' and ``passwdfile.dir'' (see _n_d_b_m(3)).
     Data subsequently taken from the database files differ from
     _p_a_s_s_w_d_f_i_l_e in one respect.  Rather than storing the
     encrypted password in the database, _m_k_p_a_s_s_w_d stores the
     offset of the encrypted password in _p_a_s_s_w_d_f_i_l_e.

     _M_k_p_a_s_s_w_d exits zero on success, non-zero on failure.

     The -_p option causes _m_k_p_a_s_s_w_d to create ``passwdfile.orig'',
     a password file in the standard Version 7 format.

SEE ALSO
     chpass(1), passwd(1), getpwent(3), ndbm(3), passwd(5),
     vipw(8)





























Printed 11/24/99	February 22, 1989			1