Operating System - HP-UX
1820561 Members
1991 Online
109626 Solutions
New Discussion юеВ

SERVER BOOTING IN SINGLE USER MODE

 
SOLVED
Go to solution
Andrew Luis Arruza
Frequent Advisor

SERVER BOOTING IN SINGLE USER MODE

What would cause an "N" class to keep booting in single user mode?
Any/all help greatly appreciated.
Andy
It is, after all, a matter of survival!!
5 REPLIES 5
Bruce Regittko_1
Esteemed Contributor
Solution

Re: SERVER BOOTING IN SINGLE USER MODE

Hi,

One thing that could cause this is a problem with the /etc/inittab file. Make sure that the first non-comment line is

init:3:initdefault:

to boot to run level 3. (Note the trailing :).

If this does not fix the problem, rename the /etc/inittab file and copy a new one into place:

mount /usr
mv /etc/inittab /etc/inittab.OLD
cp /usr/newconfig/etc/inittab /etc/inittab
reboot

Good luck,

--Bruce
www.stratech.com/training
melvyn burnard
Honored Contributor

Re: SERVER BOOTING IN SINGLE USER MODE

A corrupt or missing /etc/passwd or/etc/group file will also FORCE the system to boot in single user mode.
You may also want to watch the console when the system boots as the boot string MAY be set to override the /etc/inittab entry with the -is option set.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Donald Fisher
Advisor

Re: SERVER BOOTING IN SINGLE USER MODE

If you added "exec ksh " to the .profile file for root, you will have to comment it out.
S.Ober
New Member

Re: SERVER BOOTING IN SINGLE USER MODE

If the wrong shell for the root user is used the system will only boot in single user mode. Change in /etc/passwd the root shell to /sbin/sh and this shouldn't be a problem anymore.
Better one server in the air then no air!
Andrew Luis Arruza
Frequent Advisor

Re: SERVER BOOTING IN SINGLE USER MODE

The problem was in the /etc/passwd file.
Someone had changes to root shell to /usr/bin/ksh.
Thanks to all. Hope this helps someone else.
It is, after all, a matter of survival!!