LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change NIS user password (https://www.linuxquestions.org/questions/linux-newbie-8/change-nis-user-password-4175477425/)

boby.kumar 09-17-2013 06:11 AM

change NIS user password
 
Hi

I have created an NIS server and user is nis1. need to change password for root and nis1 user. when try to change passwd for root, getting the following message and no passwd changed..

[root@server yp]# yppasswd
Changing YP password for root on server.
Please enter old password:
Sorry.

can anyone explain what is problem and how to fix this?

Thanks and Regards

eklavya 09-17-2013 07:44 AM

Try
Code:

yppasswd root
or
Code:

passwd root
Are you still facing same problem?

Code:

Try using rpasswd
http://www.tldp.org/HOWTO/NIS-HOWTO/rpasswdd.html

Are you able to change password for your user?
Code:

sudo yppasswd nis1
Changing NIS account information for nis1 on ........
Please enter root password:
Changing NIS password for nis1 on ........
Please enter new password:
Please retype new password:

The NIS password has been changed on ........


boby.kumar 09-17-2013 08:30 AM

Thanks for the update.

Passwd for root or user nis1 is not yet changed. getting the same output as above.

[root@server nis1]# sudo yppasswd nis1
Changing YP password for nis1 on server.
Please enter old password:
Sorry.
[root@server nis1]#

Is any idea what the actually issue here?

jpollard 09-17-2013 09:49 AM

Usually, root is not in the NIS password database.

This is because it is a vulnerability to do so - NIS on its own is not all that secure. NIS with root is VERY insecure.

boby.kumar 09-18-2013 12:02 AM

thanks Jpollard.

but nis1 user is in the NIS database so it should be change.but the state as the root user.

jpollard 09-18-2013 08:58 AM

Only if the old password is valid.

Now, if it accepted the change, but the new password doesn't seem to work... can be caused by having multiple slave NIS servers running, but updates have not yet been propagated to the slaves.

To set a users password, only the root user on the master server (not a slave server) should be able do it.

boby.kumar 09-18-2013 11:34 PM

only two one NIS server and client is here.

Thanks a lot Jpollard


All times are GMT -5. The time now is 07:42 AM.