Operating System - HP-UX
1834379 Members
1907 Online
110066 Solutions
New Discussion

Re: couldn't change password/attributes

 
Ralf Buchhold
Regular Advisor

couldn't change password/attributes

Hello
I have a nis client installed on the server.
When I want to change the password,
I get the following message:
couldn't change password/attributes on user ..

What can I do ?

Thanks
Ralf
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: couldn't change password/attributes

Are you using passwd or yppasswd?

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ralf Buchhold
Regular Advisor

Re: couldn't change password/attributes

I use passwd.

By
Ralf
R. Sri Ram Kishore_1
Respected Contributor

Re: couldn't change password/attributes

Hi Ralf,

I assume you are trying to change your own password and are not able to do so. hmm...
But it would help if you can provide more information on the problem.

Anyway, here is some general gynan:
On HP-UX, users change their passwords with the passwd (1) command which changes /etc/passwd or the NIS maps or the yppasswd (1) command which changes the NIS maps. With users' passwords in the directory, they must use a different method of changing their password.
Users change their password with the ldappasswd command. This command is similar to the yppasswd command. It changes a user's password in the LDAP directory. So, try using the other methods to change the password.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Geoff Wild
Honored Contributor

Re: couldn't change password/attributes

Try:

passwd -r nis

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ralf Buchhold
Regular Advisor

Re: couldn't change password/attributes

Sorry
I tested:
passwd username
yppassed username
passwd -r nis username

Old NIS password:
New password:
Re-Enter new password:

then I get the error message

Have anyone an idea ?
Thank you
Ralf
Geoff Wild
Honored Contributor

Re: couldn't change password/attributes

Do you see anything in /var/adm/syslog/syslog.log?

like maybe "user : does not exist"

Are you running this command on the NIS master server or on a client?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: couldn't change password/attributes

Another thing to try:

Try using 'passwd -r files ' on the NIS master to change the password. The passwd command is probably trying to use the first service described for the passwd database defined in /etc/nsswitch.conf, which might be NIS on your machine. After you set the password for the user,
cd /var/yp and run make to propagate it to your NIS database. Remember, yppasswdd should only be run on the NIS master.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sanjay_6
Honored Contributor

Re: couldn't change password/attributes

Hi,

Check and see if rpc.yppasswdd is running on the NIS master. Maybe this daemon is down or unable to communicate.

Hope this helps.

Regds