Technical article 115344

How do I get a shell during boot time without login onto the system?

OpenServer 6.0.0UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

Problem

For maintenance reason, I need to directly access my system without having to enter a login/passsword during the boot of the system.

Solution

Use an editor of your choice to edit /etc/inittab file and append it with the following line:

shll::sysinit:/sbin/sh </dev/console >/dev/console 2>&1

Note: insure the first field of the line you append in /etc/inittab is unique.

At the next reboot, this will allow your system to fall into a shell during the boot sequence, then you will just need to type 'exit' to let the system continue to boot.

See also

init(1M), inittab(4), rc0(1M), rc1(1M), rc2(1M) and shutdown(1M)

From the Xinuos technical article database, record 115344. Reproduced with permission. The original is at www.sco.com/ta/115344, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.