Changes your network password in Network Information Services (NIS).
The yppasswd command changes (or installs) a network password and associates it with the name you specify in the UserName parameter. To create or change a password, you must be the owner of the password you want to change. The Network Information Services (NIS) password can be different from the one on your own machine. Root users on an NIS server can change the password of another user without knowing the user's original password. To do this, the Root user enters their password in place of the user's original password. Root users on an NIS client, however, do not have this privilege.
When you enter the yppasswd command on the command line, the system prompts you to enter the old password. When you do this, the system prompts you to enter the new password. The password you enter can be as small as four characters long if you use a mixture of uppercase and lowercase characters. Otherwise, the password has to be six characters long or longer. These rules are relaxed if you are insistent enough.
If you enter the old password incorrectly, you have to enter the new password before the system will give you an error message. The system requires both passwords because the update protocol sends them to the server at the same time. The server catches the error and notifies you that you entered the old password incorrectly.
Item | Description |
---|---|
-f [ Name ] | Changes user Name's gecos information in the NIS maps. Gecos information is general information stored in the /etc/passwd file. |
-s [ Name [ ShellProg ]] | Changes user Name's login shell in the NIS maps. |
yppasswd Joe
This example demonstrates how to change the NIS password for the user named Joe. The system prompts you to enter Joe's old password and then his new password.
yppasswd -s Joe /bin/ksh
yppasswd -f Joe
Old NIS password:
Joe's current gecos:
John Doe Test User Id
Change (yes) or (no)? >y
To?>Joe User Test User Id