|
|
HP-UX Reference > Yyppasswd(1)HP-UX 11i Version 2: December 2007 Update |
|
NAMEyppasswd — change login password in Network Information System (NIS) DESCRIPTIONyppasswd changes or installs a password associated with the login name in the Network Information System (NIS). The NIS password can be different from the one on your own machine. If name is omitted, it defaults to the name returned by getlogin() (see getlogin(3C)). yppasswd prompts for the old NIS password (even if it does not exist), then twice for the new one. The old password must be entered correctly for the change to take effect. Checks occur to ensure that the new password meets the following construction requirements.
All these rules except the first are relaxed if you try three times to enter an unacceptable new password. You cannot, however, enter a null password. Only the owner of the name or the superuser can change a password. The Network Information System password daemon, yppasswdd(1M), must be running on the master NIS password server to change NIS passwords. WARNINGSThe password update protocol passes the old and new passwords to the master NIS server at once. Thus, if the old NIS password is incorrect, no notification is given until the new NIS password is successfully entered. The yppasswd password construction rules are different from those of the HP-UX passwd command (see passwd(1)). User applications that call this routine must be linked with /usr/include/librpcsvc.a. For example, cc my_source.c -lrpcsvc |
|