Bug 7840 - when swithing to init 1, system is not protected by root password
Summary: when swithing to init 1, system is not protected by root password
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 6.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-12-16 12:53 UTC by Q Enterix
Modified: 2014-03-17 02:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-12-16 17:00:16 UTC

Attachments (Terms of Use)

Description Q Enterix 1999-12-16 12:53:50 UTC
When switching to init 1 (single user mode), system automaticly logs in as
root. There is no password protection at this level. This is a security
problem especially with console access and Ctrl+Alt+Del enabled: typing
"LILO: linux 1" will give full root access.

Comment 1 Bill Nottingham 1999-12-16 17:00:59 UTC
So will, among other things, 'linux init=/bin/bash'. Without
disabling command-line arguments completely in LILO, there's
no point in making single user-mode ask for a password.

Comment 2 Riley H Williams 1999-12-17 00:15:59 UTC
There is actually a fairly simple fix for this problem, which I have put in
every Linux installation I've done:

 1. Run the following command:

        chmod 0600 /etc/lilo.conf

 2. Put the following two lines at the top of /etc/lilo.conf (at least, in
    the global section thereof):


    Replace PASSWORD with whatever password you require, in plaintext.
    Note that whitespace is NOT permitted in the password.

 3. Make sure that the default runlevel in /etc/inittab is NOT level 1.

 4. Run lilo to install those changes.

Following the above, anybody wishing to add ANY parameters to the command line
will need to type in the specified password before LILO will permit their use.
The password has to be in plaintext here for some reason, hence the requirement
to set mode 0600 on /etc/lilo.conf first.

Personally, I'd like to see this as the default in RedHat. Any chance of that?

Note You need to log in before you can comment on or make changes to this bug.