Discussion Locked

Linux Security Hole

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

My friend shows this to me:

After bootup, at the lilo prompt, he just key in "linux single", then he can login and run "passwd root" to change the root password!

How can this happen? Anyway to secure this?

Thx.

8 replies

by alexei

This is normal single user boot-up and not a security hole. You can secure this by modifing /etc/lilo.conf. man lilo.conf for details

by kevin anderson

That is by design. Linux single is completely disconnected from the network, in SINGLE user mode. It exists so that if the Root Password is lost or forgotten, the system can still be accessed (among other reasons.)

Most NOSes are compromised once a person has physical access, this isn't any different.

If you want, you can add a password to LILO. This will help further secure the system.

Kev.

by rob_freyder

Greetings,

you'll want to assign a password in lilo.conf and also use the restricted keyword. You might also put a password on your CMOS so that you can't boot of the floppy or CDROM if you want to carry this a little further. Someone with bootable media could accomplish the same thing by mounting those filesystems after booting from other media....

do check the man page on lilo.conf and lilo so that you get this set right. Errors can be fatal...

Good Luck.
Rob.

by jcmcintyre

To prevent users from entering single-user mode, you add two entries to /etc/lilo.conf. The first entry is the word
restricted
on a line by itself. A good place for this entry is on the line below the
"timeout=" line.
Once the restricted keyword is added, on the line below it, you add a new line:
password="Password"

where "password" is the password required to enter single-user mode. Don't use the root password for this. Use a separate to restrict single-user mode.

Cheers

Jim

This discussion is closed to new replies.