Operating System - HP-UX
1831686 Members
2273 Online
110029 Solutions
New Discussion

how to login the single user mode

 
syno
Occasional Contributor

how to login the single user mode

I have an old HP9000 800/G50 server ,but I cannot remember the password of root.
I try to reboot the server to access the single mode, failed.
the situation is as below:
1.Enter the ten seconds interrupt,press enter
2.boot to the IPL mode,
3.IPL>hpux -is
<-----after waiting a few secons,return to the prompt of IPL
4.I try to use another command to boot to single user mode, still failed.
IPL>hpux -is boot(:0) /stand/vmunix
<---It returns as below
boot
:disc3(52.6.0;5) /stand/vmunix
disc3(52.6.0;5) /stand/vmunix:cannot open,or not execute
Exec failed:No such file or directory

IPL>>----NOT ACCESS TO SINGLE USE MODE,SO I cannot reset the root passward.
Could someone help me to give a solution?Thanks,
learnmore
9 REPLIES 9
donne007
Regular Advisor

Re: how to login the single user mode

hi syno
Try using From The
MAin Menu> sea ipl
and once your system points out the Boot Path
boot using the same .. like
Main Menu> Bo Pn
wher n is the Boot Path No.
And go for Inteactive mode, And try from isl>hpux -is (and NOt from ipl)
Let Hope it wrks.

Good Luck
Asif
Ravi_8
Honored Contributor

Re: how to login the single user mode

Hi,

IPL> hpux -iS (capital s not the small s)
will take you into single user mode
never give up
tarek_3
Frequent Advisor

Re: how to login the single user mode

if you have a trusted system
and you restrict the login to single user mode
try to create a crush on your system,
then the system will reboot in a single user mode
Eugeny Brychkov
Honored Contributor

Re: how to login the single user mode

First of all try 'hpux ll' to see what do you have in the /stand (lvol1) subdirectory. Check executable size. BTW, are you able to boot in multi-user mode? If not then vmunix is corrupt
Eugeny
Steven E. Protter
Exalted Contributor

Re: how to login the single user mode

The above instructions are good, but it is possible to password protect single user mode. If that is done, I know no way to reset root password.

I know few people outside of government service who actually do this. Physical access to the computer room needs to be controlled or you have no security anyway.

Steve
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
Martin Johnson
Honored Contributor

Re: how to login the single user mode

Try booting iin maintenance mode:

hpux -lm

mount /etc and /usr, then edit /etc/passwd. If a trusted system, edit /tcb/files/auth/r/root.
Remove the password from the line that looks something like this:

:u_pwd=UldaUadfdaI:
remove between the "=" and the ":"

UldaUadfdaI

HTH
Marty
Bill McNAMARA_1
Honored Contributor

Re: how to login the single user mode

from the message no kernel is found so nothing will boot.
ISL does exist on the disk you've BO'd from, (as you get prompt) so either you've hosed your / or /stand filesystem or the kernel.

hpux ll

will show if there is any bootable kernel file. If there is try booting from it.

Later,
Bill
It works for me (tm)
Armin Feller
Honored Contributor

Re: how to login the single user mode

Hi,

do following:

ISL> hpux -lm

# vgchange -a y /dev/vg00

# lvlnboot -v /dev/vg00

If no boot logical volume configured do:

# lvnboot -b /dev/vg00/lvol1
# lvlnoot -Rv /dev/vg00

# mount /dev/vg00/lvol1 /stand
---> moved original kernel back in place !!!

# cd /
# shutdown -r 0

Best regards,
Armin
Frank Slootweg
Honored Contributor

Re: how to login the single user mode

Can you boot the system normally?

If so, let it boot normally and *exactly* note down the line which looks *like*:

:disc3(52.6.0;5)/stand/vmunix

Then shutdown the system and reboot it to "ISL> ".

Now enter "hpux -is " (without quotes) and the line which you have noted down, but without the colon (":"), i.e. in the example the command would be:

ISL> hpux -is disc3(52.6.0;5)/stand/vmunix

The reason for this 'difficult' method is that if the default 'device file (see hpux(1M) manual page) is not set up correctly, you will have to specify the *full* device file ("disc3(52.6.0;5)/stand/vmunix " in the example).