Operating System - HP-UX
1830624 Members
2007 Online
110015 Solutions
New Discussion

root can't change user-passwords

 
SOLVED
Go to solution
Karl Bongartz
Occasional Advisor

root can't change user-passwords

Hello
we have installed HPux11 on a E55 Server.
When i want to change user-passwords as root user, i am always prompted for the users old-Password.
root uid is 0, the access rights for etc/passwd are same as on a 10.20 System?
The system is not setup as trusted System.
Has anyone an idea who to solve this Problem?
8 REPLIES 8
Alexander M. Ermes
Honored Contributor

Re: root can't change user-passwords

Hi there.
edit the /etc/passwd. Replace the combination in the second column ( 13 characters ) by the combiantion ,..
Then the user will be asked to enter a new password on next login.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Frank Li
Trusted Contributor

Re: root can't change user-passwords

Do you implement the NIS/NIS+ in your system ? If yes, this will happen .
Hi Friend
Vincenzo Restuccia
Honored Contributor

Re: root can't change user-passwords

logout and login.
Ravi_8
Honored Contributor

Re: root can't change user-passwords

Hi,
you can do this using SAM
never give up
Karl Bongartz
Occasional Advisor

Re: root can't change user-passwords

hello,
the machine is setup as NIS Server.
nevertheless it should be possible for the root user, to change passwords of other users, without entering the users old password (which root does not know).
Sachin Patel
Honored Contributor

Re: root can't change user-passwords

Hi Karl,
I think if you have password setup then passwd will ask you for your old password. So you have to remove second field from passwd file manually then it will ask you for new password.

Sachin

Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: root can't change user-passwords

Hi Karl,

Since you are using NIS, yppasswd always prompts for the old passwd even if the effective uid is 0. The undeylying function (yppasswd) requires the old passwd as an argument. However, you can as root on the NIS server use 'passwd' (not yppasswd) to change the passwd of any user. You then need to push the new passwd map either by
cd'ing to /var/yp amd 'make' or with an explicit ypmake command.

This should fix you, Clay
If it ain't broke, I can fix that.
Karl Bongartz
Occasional Advisor

Re: root can't change user-passwords

i have testet and found, that /sbin/passwd
sets the password without prompting for the old one

regards and thanks for your help

Karl