1752728 Members
6093 Online
108789 Solutions
New Discussion юеВ

Re: Changing Root passwd

 
susee
Advisor

Changing Root passwd

Hi All

Iam using a L class server
$uname -a
HP-UX prod1 B.11.11 U 9000/800 132444630 unlimited-user license

How to find the system is in trusted mode
And moreover iam unable to change the root password , when i issue passwd command it
replies with
----------------------------------------------
#passwd
Changing password for root
Old password:
Last successful password change for root: Wed Jun 8 12:56:31 2005
Last unsuccessful password change for root: Mon Jan 30 15:26:41 2006

Password cannot be changed. Reason: password lifetime has passed.
--------------------------------------------


Kindly suggest us to resolve this problem

Thanks & regards
Susee
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Changing Root passwd

Shalom,

The root password has already expired.

To fix this, null it out first.

vi /tcb/files/auth/r/root

Change the line that looks like:
:u_pwd=AjDIB7xoAZVGE:\

to
:u_pwd=:\

Save it.

Quickly run the passwd command and set the root password.

Even better, take the machine to single user mode so there is no chance of anyone getting root priviledges.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: Changing Root passwd

Try using the /sbin/passwd command to change the password. My understanding is /sbin/passwd will bypass all the checks.
Learn What to do ,How to do and more importantly When to do ?
Rick Garland
Honored Contributor

Re: Changing Root passwd

To know if you are in trusted mode.
If you have the /tcb directory and the subdirectories under it. And, you have the /usr/lbin/modprpw command. (This is an arbitrary command selection. There will be several other 'trusted system' commands in the /usr/lbin directory.)

The encrypted passwd on a trusted stsem is stored in the /tcb/files/auth/r/root

If not trusted, look into the /etc/passwd
DCE
Honored Contributor

Re: Changing Root passwd


For trusted mode - if the /tcb directory exists, the system probably is in trusted mode.

If it is in trusted mode you can try issuing the following command against root to reset the password paramemters

/usr/lbin/modprpw -k root

susee
Advisor

Re: Changing Root passwd

Thanks DCE

The information given by you solved

i first unlocked by modprpw -k root

and i issued passwd command

i was able to change the password

Thanks to all for your valuable suggestions