Operating System - HP-UX
1748198 Members
2581 Online
108759 Solutions
New Discussion юеВ

Re: how to reset password in trusted mode

 
eric wang_2
Frequent Advisor

how to reset password in trusted mode

my root account is lock on trust mode,
i enter in single usr mode,
but i have no idea how to reset passwd
when i type #passwd root
#old passwd:

i don't know old passwd

how to reset root passwd in trusted mode
or in single user mode that i can unconvert
thanks
4 REPLIES 4
cgi-telebec
New Member

Re: how to reset password in trusted mode

2. Mount /usr file systems.
# mount /usr

Note: The file system might need file system check (fsck) before mounting.

3. Systems that are not using Trusted System security skip to step #4.
For Trusted Systems (presence of a /tcb directory), follow these additional
steps:

a) Use the following command to reactivate the 'root' account:
# /usr/lbin/modprpw -k root

b) Use the 'modprpw' command to null the password, so that the passwd command
does not prompt for the old password.

10.x
# /usr/lbin/modprpw -w "" root

11.x
# /usr/sam/lbin/usermod.sam -F -p "" root

NOTE: To untrust the system, use: tsconvert -r

4. Change the root account password.
# passwd root

5. Boot the system in to multi user mode.
eric wang_2
Frequent Advisor

Re: how to reset password in trusted mode

I try all those methods,it cannot work

i don't know how to do

thanks
ani007
Super Advisor

Re: how to reset password in trusted mode

If you want to unlock the account then
#/usr/lbin/modprpw -k root
you can restore the password from veritus netbackup.you need to copy the file from the following location.

#cd /tcb/files/auth/r
from this location you need to restore the
root file.
eric wang_2
Frequent Advisor

Re: how to reset password in trusted mode

i have solve the problem by
this thread says
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=819806

How long are your passwords? If you password is more than 8 characters before you trust the system, try entering only the first 8 characters of the password after you trust the system.


I enter the first 8 characters of the password
I can reset the password

thanks for all reply