Operating System - HP-UX
1834779 Members
3181 Online
110070 Solutions
New Discussion

Re: Password change on NIS

 
Pedro Cirne
Esteemed Contributor

Password change on NIS

Hi,

As root, I'm trying to change the password of na ordinary user but NIS ask for the old password :(

root@poru9016:/# passwd helpdesk
Changing password for helpdesk on NIS server
Old NIS password:
Sorry.
root@poru9016:/#

How can I change the password for the user helpdesk?
5 REPLIES 5
Sanjay Kumar Suri
Honored Contributor

Re: Password change on NIS

Check if these posts help:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51047
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51330


sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Muthukumar_5
Honored Contributor

Re: Password change on NIS

IF we try to change the NIS account users passwd it will prompt for the old passwd. It is noted in yppasswd man page as,

--------- man ypppasswd ----
The 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.
-------------------------------

Try to use the passwd of users on files datebase. Check the /etc/nsswitch.conf file for passwd: entry.

Use the files in the begin and change the passwd of user now from super user. It will do that.

or passwd -r files user

It will do that change now.



Easy to suggest when don't know about the problem!
MarkSyder
Honored Contributor

Re: Password change on NIS

A quick and dirty solution.

Log in to the NIS server. Make a safe copy of the passwd file. vi the file and remove the user's password entry. Push the change out.

When you next run passwd it will prompt you for the old password. Press enter (as there isn't a password set). It will then prompt you for a new password.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Lars Blumenthal
Advisor

Re: Password change on NIS

On the NIS Master Server with root rigts:

passwd -r files -F $path_to_nis_passwd $username

Lars
Pedro Cirne
Esteemed Contributor

Re: Password change on NIS

Hi,

Thks!

Pedro