Go to main content

マニュアルページ セクション 1: ユーザーコマンド

印刷ビューの終了

更新: 2022年7月27日
 
 

yppasswd(1)

名前

yppasswd - change your network password in the NIS database

形式

yppasswd [username]

説明

The yppasswd utility changes the network password associated with the user username in the Network Information Service (NIS) database. If the user has done a keylogin(1), and a publickey/secretkey pair exists for the user in the NIS publickey.byname map, yppasswd also re-encrypts the secretkey with the new password. The NIS password may be different from the local one if the account also appears in the passwd(5) file on the machine.

yppasswd executes passwd -r nis. Restrictions on the password and who may change it are documented in the passwd(1) manual page.

The NIS password daemon, rpc.yppasswdd must be running on your NIS server in order for the new password to take effect.

属性

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/network/nis
Interface Stability
Obsolete

関連項目

keylogin(1), login(1), passwd(1), getpwnam(3C), getspnam(3C), secure_rpc(3C), nsswitch.conf(5), attributes(7)

警告

Even after the user has successfully changed their password using this command, the subsequent login(1) using the new password will be successful only if the user's password and shadow information is obtained from NIS. See getpwnam(3C), getspnam(3C), and nsswitch.conf(5).

The use of yppasswd is discouraged, as it is now only a wrapper around the passwd(1) command, which should be used instead. Using passwd(1) with the –r nis option will achieve the same results, and will be consistent across all the different name services available.

バグ

The update protocol passes all the information to the server in one RPC call, without ever looking at it. Thus, if you type your old password incorrectly, you will not be notified until after you have entered your new password.