1yppasswd(1)                 General Commands Manual                yppasswd(1)
2
3
4

NAME

6       yppasswd, ypchfn, ypchsh - change your password in the NIS database
7

SYNOPSIS

9       yppasswd [-f] [-l] [-p] [user]
10       ypchfn [user]
11       ypchsh [user]
12

DESCRIPTION

14       In  the  old  days,  the  standard passwd(1), chfn(1) and chsh(1) tools
15       could not be used under Linux to change the users NIS  password,  shell
16       and  GECOS  information.  For  changing  the NIS information, they were
17       replaced by their NIS counterparts, yppasswd, ypchfn and ypchsh.
18
19       Today, this versions are deprecated and should not be used any longer.
20
21       Using the command line switches, you can choose whether to update  your
22       password -p, your login shell -l, or your GECOS field -f, or a combina‐
23       tion of them.  yppasswd implies the -p option, if no  other  option  is
24       given.  If  you  use  the  -f or -l option, you also need to add the -p
25       flag.  ypchfn implies the -f option, and ypchsh -l.
26
27       When invoked without the user argument, the account information for the
28       invoking  user will be updated, otherwise that of user will be updated.
29       This option is only available to the super-user. If the yppasswdd  dae‐
30       mon  on  the  server supports it, you can give the root password of the
31       server instead of the users [old] password.
32
33       All tools will first prompt the  user  for  the  current  NIS  password
34       needed  for  authentication with the yppasswdd(8) daemon. Subsequently,
35       the program prompts for the updated information:
36
37       If we use shadowing passwords using  passwd.adjunct,  SHA-512  will  be
38       used  for  hashing  a  new  password by default. If we want to use MD5,
39       SHA_256  or  older  DES,  we  need  to  set  the  environment  variable
40       YP_PASSWD_HASH.   Possible  values  are  "DES",  "MD5",  "SHA-256"  and
41       "SHA-512" (value is case-insensitive).
42
43       yppasswd or -p
44              Change the user's NIS password.    The user is prompted for  the
45              new password.  While typing the password, echoing is turned off,
46              so the password does not appear on the screen. An empty password
47              is  rejected,  as are passwords shorter than six characters. The
48              user will then be requested to retype the password to make  sure
49              it wasn't    misspelled the first time.
50
51       ypchsh or -l
52              Change  the  user's  login shell. The user is prompted for a new
53              shell, offering the old one as default:
54
55                Login shell [/bin/sh]: _
56
57              To accept the default, simply press return. To clear  the  shell
58              field in your passwd(5) file entry (so that the system's default
59              shell is selected), enter the string none.
60
61       ypchfn or -f
62              Change the user's full name and related information.  Tradition‐
63              ally,  some applications expect the GECOS field (field 4) of the
64              passwd(5) file to contain the user's real name  (as  opposed  to
65              the login name) plus some additional information like the office
66              phone number. This information is  displayed  by  finger(1)  and
67              probably some other tools, too.
68
69              When  setting  the  full  name,  ypchfn  displays  the following
70              prompts, with the defaults in brackets:
71
72                Name [Joe Doe]:
73                Location [2nd floor, bldg 34]:
74                Office Phone [12345]:
75                Home Phone []:
76
77              To accept a default, simply press  return.  To  clear  a  field,
78              enter the string none.
79

NOTE

81       yppasswd  cannot  do password checks on systems, where shadow passwords
82       are enabled. On such systems, a PAM enabled passwd(1) should be used.
83

SEE ALSO

85       chfn(1), chsh(1), finger(1), passwd(5),  passwd(1),  ypcat(1),  yppass‐
86       wdd(8), ypserv(8), ypwhich(1)
87

AUTHOR

89       yppasswd is part of the yp-tools package, which was written by Thorsten
90       Kukuk <kukuk@linux-nis.org>.
91
92
93
94YP Tools 4.2.3                   Febrary 2016                      yppasswd(1)
Impressum