Operating System - HP-UX
1752525 Members
4917 Online
108788 Solutions
New Discussion юеВ

Re: root password required on single user mode

 
SOLVED
Go to solution
Brian Lee_4
Regular Advisor

root password required on single user mode

After I changed security policy to trusted mode, the system asked me of root passwd to get into single user mode when I tried to chagne root passwd.

How can I get into single user mode at this situation w/o root passwd?
brian lee
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: root password required on single user mode

If you are saying you answered the question yes, you'll need to have that root password, even in single user mode.

To get to single user mode, boot the box. From the console. Without the root password, you may need to use the power switch

Interupt at the 10 second prompt.

bo

Y Interact

hpux -is

If you can't break in, get the core os cd and boot off that.

SEA after the 10 second prompt.

If the CD is P2

BO P2

Then null out the root password in the file

/tcb/files/auth/root
null out the between the = and : the line that says:

u_pwd=ssreirjeoirjeoirje:\

Save the file.

To make vi work right, you may need to mount /usr before you start working. Don't just erase the file, it won't help.

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
Michael Tully
Honored Contributor

Re: root password required on single user mode

SEP has a good idea here. It should work. To use 'vi' you must have /usr mounted and change your temporary work files to somewhere, as /var/tmp is the default for 'vi' so normally /var/ has to be mounted also.
Anyone for a Mutiny ?