1846762 Members
4974 Online
110256 Solutions
New Discussion

Re: root password

 
Venky_1
Frequent Advisor

root password

Hello,

I am not able to change my root password on HP-UX 11.00. And it gives me the following error message
==========================================
Unexpected failure. Password file unchanged.
==========================================

Any suggestions .....

Thanks
Venky
Winners never quit and quitters never win
13 REPLIES 13
Steve Steel
Honored Contributor

Re: root password

Hi


try pwck to check for faults.


check access for /etc/passwd

Should be readable for all

-r--r--r-- 1 root sys 7740 Mar 7 12:53 /etc/passwd


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Clemens van Everdingen
Honored Contributor

Re: root password

Hi,

If you are using NIS then it looks like a nis problem.
I have no direct specific ideas, but maybe later.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Mateja Bezjak
Respected Contributor

Re: root password

Hi,

Check if there is a blank line in /etc/passwd file. If it is remove it.

Regards,
Mateja
Venky_1
Frequent Advisor

Re: root password

Hello,

I have rechecked all the points told by you all but still the problem persists.

Any more suggestions .....

Thanks
Venky
Winners never quit and quitters never win
Roger Baptiste
Honored Contributor

Re: root password

hi,


First, make sure your password file is not corrupted. i.e, it has no missing entries, broken lines etc. If you have older version of the password file, you can do a diff on it.
The point is make sure the password file is ok.
(pwck is a quick check, but not comprehensive)

Are you using trusted system?
- make sure your trusted database under /tcb is ok. the password information for tcb root accounts are under /tcb/files/auth/r/root . Check whether that file exists and is ok.

if you Are you using NIS/NIS+ system, the problem could be elsewhere.

Also, make sure whether you are using the right passwd command! (/usr/bin/passwd) ;-)

Ensure that you can change passwd of non-root accounts.

HTH
raj


Take it easy.
Steve Steel
Honored Contributor

Re: root password

Hi


is this trusted


If so
Sounds like an entry in passwd not in protected passwd

Try Running ' /usr/sbin/authck -pv '


Correct any problems


Also
check patches

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Venky_1
Frequent Advisor

Re: root password

Hi,

I am not able to change passwd for any account.
It gives me the same message.

Any help..

Thanks
Venky
Winners never quit and quitters never win
John Carr_2
Honored Contributor

Re: root password

Hi

I suspect the password file is corrupted. I would try this to check first.


cp /etc/passwd /etc/passwd.saved

rm /etc/passwd

echo "root::0:3::/:/sbin/sh" > /etc/passwd

now do

passwd root

If this works you need to find the corruption in the passwd.saved file or rebuild the file manually. If it doesnt work then copy the passwd.saved back to passwd as the file is not the problem.

cheers
john.
K.Vijayaragavan.
Respected Contributor

Re: root password

Hi,
1)boot in single user mode
2)Interrupt boot process and at isl prompt type hpux -is"
3)run sam
4)assign new passwords to the users.

-Vijay
"Let us fine tune our knowledge together"
Venky_1
Frequent Advisor

Re: root password

Hello,

Thanks everybody for their suggestions.
Problem got resolved, I simply recreated the passwd file freshly with important user accounts and then tested again. There was no problem this time.

Seems to be passwd file corruption which "pwck" was not able to detect.

Thanks
Venky
Winners never quit and quitters never win
Steve Steel
Honored Contributor

Re: root password

Hi


try this

passwd -F /usr/newconfig/etc/passwd root

If it works then the password file is corrupt.

Check
1)For a trusted system
2)Nis

Do any of the checking programs recommended
give a problem.

Which OS do you have.
Have you changed any software or patches lately.

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
U.SivaKumar_2
Honored Contributor

Re: root password

hi ,
check the /usr/bin/passwd program file for suid permission bits.

regards,
U.SivaKumar.
Innovations are made when conventions are broken
F Verschuren
Esteemed Contributor

Re: root password

please check this file:
ll /tcb/files/auth/r/root
-rw-rw-r-- 1 root root15:49 /tcb/files/auth/r/roo

If you are looking ad the file it must look like this:
cat /tcb/files/auth/r/root
root:u_name=root:u_id#0: :u_pwd=8EnCriptedA: :u_bootauth:u_auditid#0: :u_auditflag#1: :u_succhg#1007648292:u_unsucchg#1001928601:u_pw_expire_warning#0:u_pswduser=root: :u_suclog#1017240605:u_suctty=pts/ta:u_unsuclog#1011951616:u_unsuctty=pts/ta: :u_lock@:chkent:

edit the file and change:
:u_pwd=8EnCriptedA:into:
:u_pwd=:
than change the passwd

htp

Freek