1848533 Members
1769 Online
104033 Solutions
New Discussion

Root Password

 
SOLVED
Go to solution
Fuad_1
Regular Advisor

Root Password

After I change to a trusted system, I could not logon as root (wrong password). I start the system in to single user mode, then when I tried to change the root password I prompeted for the old one. When I enter the old password says (sorry) !!! What happen?
Set goals, and work to achieve them
11 REPLIES 11
T G Manikandan
Honored Contributor
Solution

Re: Root Password

Boot into single user mode
#/usr/lbin/tsconvert -r (untrust the system)
Edit /etc/passwd and remove the password from the file
Again make it trusted
#/usr/lbin/tsconvert


This should force you to set password during login of root after the change to trusted system.



Thanks
Domenico_5
Respected Contributor

Re: Root Password

hi

try sto start in maintenance mode (hpux -lm) if doesn't work, you can start from installation cd (run ecovery shell) mount your disk and change the root password.

regards
Bill Hassell
Honored Contributor

Re: Root Password

You may have been using a password longer than 8 characters on the unTrusted system. An unTrusted system ignores everything after the 8th character but a Trusted system uses every character you type. However, the conversion has no idea that you type extra characters so the Trusted password for root will be limited 8 characters max.

Note that using tsconvert (which is located in /usr/lbin) will require running /usr/lbin/modprpw -V to enable all the user passwords. Otherwise, every password will be expired and require choosing a new one (including root).


Bill Hassell, sysadmin
Fuad_1
Regular Advisor

Re: Root Password

Hi,

/usr is empty, there is no commnads in there!
Set goals, and work to achieve them
John Dvorchak
Honored Contributor

Re: Root Password

I am guessing that you are in single user or maintenance mode. You will have to manually mount /usr and maybe /tmp if you are going to use vi.

mount /usr

should do it
If it has wheels or a skirt, you can't afford it.
John Dvorchak
Honored Contributor

Re: Root Password

Also when you re-trust it with tsconvert don't forget to change your password BEFORE you logoff...
If it has wheels or a skirt, you can't afford it.
James Murtagh
Honored Contributor

Re: Root Password

Hi,

If you are in single user mode you will need to mount it :

# mount /usr

Regards,

James.
Fuad_1
Regular Advisor

Re: Root Password

I do mount /usr, then I got the following message:

vxfs mount: /dev/vg00/lvol7 is corrupted. needs checking
Set goals, and work to achieve them
James Murtagh
Honored Contributor

Re: Root Password

Hi,

The filesystem shouldn't be corrupted - what command did you use to reboot?

In any case, use fsck to correct the filesystem :

fsck -F vxfs /dev/vg00/rlvol7

If this complains that a full fsck is needed, run :

fsck -F vxfs -o full /dev/vg00/rlvol7

This will correct it is most cases. If your log area is damaged you may have to run :

fsck -F vxfs -o full,nolog /dev/vg00/rlvol7

Regards,

James.
Fuad_1
Regular Advisor

Re: Root Password

Thanks all, my problem is solved.
Set goals, and work to achieve them
Navin Sharma_2
New Member

Re: Root Password

Boot system in single user and change the password as below:
Trusted System
================
# cd /tcb/files/auth/r
# cp root root.org
# vi root (look for field :u_pwd=)and make it null. (Example :u_pwd=SDFisdrd:\ to :u_pwd=:\

":u_pwd field is encrypted which came from /etc/passwd file.

After you have made it null, you will not be prompted for current password.

Navin