CentOS7 NISで一般ユーザーで、yppasswdを実行してもパスワードの変更ができません。
一般ユーザーでyppasswdを実行して、パスワードを変更させたい。よろしくお願いします。
○コマンド結果 [test2@nisSV ~]$ yppasswd test2 Changing NIS account information for test2 on nisSV. Please enter old password: Changing NIS password for test2 on nisSV. Please enter new password: Please retype new password: Error while changing the NIS password. The NIS password has not been changed on nisSV.
rootでyppasswdを実行して変更できません。
[root@nisSV yp]# yppasswd test2
Changing NIS account information for test2 on nisSV.
Please enter root password:
Changing NIS password for test2 on nisSV.
Please enter new password:
Please retype new password:
Error while changing the NIS password.
The NIS password has not been changed on nisSV.
rootでyppasswdを実行した時に表示された /var/log/messagessのログ
Jul 1 11:45:34 nisSV rpc.yppasswdd[1034]: update test2 (uid=1001) from host 192.168.10.1 failed
Jul 1 11:45:34 nisSV rpc.yppasswdd[1034]: Can't get selinux context /etc/passwd: No data available
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。