Operating System - HP-UX
1829913 Members
3012 Online
109993 Solutions
New Discussion

How to boot system into sigle user mode(HP 9000)

 
SOLVED
Go to solution
mehul_3
Regular Advisor

How to boot system into sigle user mode(HP 9000)

Due to one or another reason, all adminsitrative account got disabled and to enable it, I want to boot HP-UX11.11 9000 seris(risc based) into single user mode.
Could some please send a steps as the earliest.

Wating for immediate response.

Regards,
Mehul
16 REPLIES 16
Safarali
Valued Contributor

Re: How to boot system into sigle user mode(HP 9000)

Mehul you can use shutdown -s

or shutdown -S if you are using xterm or others

but if you shutdown all the user is not able to access the system

Regards
Safar
Torsten.
Acclaimed Contributor
Solution

Re: How to boot system into sigle user mode(HP 9000)

Stop the boot process at BCH. Boot from the disk, interact with ISL, run "hpux -is"

Main Menu: Enter command or menu > bo pri

Primary Boot Path: 0/0/1/0/0.8.0.5


Do you wish to stop at the ISL prompt prior to booting? (y/n) >> y

Initializing boot Device.


Boot IO Dependent Code (IODC) Revision 3


Boot Path Initialized.


HARD Booted.

ISL Revision A.00.43 Apr 12, 2000

ISL> hpux -is

...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fat Scrape
Honored Contributor

Re: How to boot system into sigle user mode(HP 9000)

Hi,

Interrupt the boot process when prompted.

boot pri isl (at the prompt.)
ISL> hpux -iS /stand/vmunix

Regards,


Mark J McDonald
Frequent Advisor

Re: How to boot system into sigle user mode(HP 9000)

or

edit the /etc/inittab file so the first line starts:

init:s:
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

How could I know it whether using xterm or not? Could I directly swith off server by pressing button directly.

Is there any other way to get account enable?
Torsten.
Acclaimed Contributor

Re: How to boot system into sigle user mode(HP 9000)

Try to connect using the console!

If you switch off the server, there will no shutdown happen (just OFF).


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

If I switch off the server, there will no shutdown happen. so what to do in such case.
Pl, help me

Regards,
Mehul
Dennis Handly
Acclaimed Contributor

Re: How to boot system into sigle user mode(HP 9000)

>Safarali: You can use shutdown -s

I see no shutdown -S or -s. If you use shutdown -r, you'll reboot.

>Could I directly switch off server by pressing button directly.

On some workstations, turning off the power is the same as reboot -h, it does a graceful shutdown. In any case, you would have to do what Torsten and Fat Scrape say, when you reboot.
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

One more trouble all of you that if system boot into sigle user mode shall I get # prompt so that I can give /usr/lbin/modprpw -k root to reactivat root and to make null of root passowrd by giving /usr/sam/lbin/usermod.sam -F -p "" root?

Dennis Handly
Acclaimed Contributor

Re: How to boot system into sigle user mode(HP 9000)

/usr/sam and /usr/lbin isn't mounted so you can't do that in single user mode. You could use passwd.

Otherwise you would need to mount more filesystems.

Normally you should always be able to login to root on the console. I assume you tried that already?
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

So now what should I do.
Pl, help......in more trouble
Mark J McDonald
Frequent Advisor

Re: How to boot system into sigle user mode(HP 9000)

Sounds like you have 'lost' the root password.

If its a server class then you will need a console attached, if its a workstation with a monitor attached you can use this.

Log on as any other users to shut down databases etc, then power off the machine with the button.

Interupt the boot as described above boot to single user mode. use the 'passwd root' command to change the root password.
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

Will system allow me to change root password
by giving #passwd root becasue I presume I have to reactivate it before giving it?
Torsten.
Acclaimed Contributor

Re: How to boot system into sigle user mode(HP 9000)

As mentioned multiple times earlier, try to connect using the systems console!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: How to boot system into sigle user mode(HP 9000)

>Will system allow me to change root password
by giving #passwd root

Yes.

>because I presume I have to reactivate it before giving it?

No.
mehul_3
Regular Advisor

Re: How to boot system into sigle user mode(HP 9000)

Thanks for all your valuable inputs.
Problem has been resolved by rebooting it on single mode and after reactivating and setting null password, system was allowed to reset a new password.