ypshad2pwd(NADM)
ypshad2pwd --
install and update the /etc/passwd.yp passwd file
Syntax
ypshad2pwd [-a] inpasswd_file inshadow_file
outpasswd_file
Description
The ypshad2pwd command creates and updates
outpasswd_file with information from
inpasswd_file and inshadow_file. The
command populates outpasswd_file with the user's login
name, password, user identification number, group
identification number, comment, home directory, and shell
information. If inshadow_file exists, the
passwd is taken from inshadow_file;
otherwise, the passwd field is taken from
inpasswd_file. If the -a option is specified,
administration accounts will be distributed.
The following is the format of an entry in
/etc/passwd.yp:
username:passwd:uid:gid:comment:homedir:shell
outpasswd_file is expected to be
/etc/passwd.yp, for use in creating the
NIS password map on an NIS master
server. Typical usage is:
ypshad2pwd /etc/passwd /etc/shadow /etc/passwd.yp
ypshad2pwd is not expected to be used by
anything other than
ypinit(NADM)
and
ypmake(NADM).
Files
/etc/passwd
/etc/shadow
/etc/passwd.yp
See also
map2ascii(NADM),
passwd(F),
ypfiles(NF),
ypinit(NADM),
ypmake(NADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003