LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Is this a Linux security flaw ? (http://www.linuxquestions.org/questions/linux-security-4/is-this-a-linux-security-flaw-20511/)

josedsilva 05-08-2002 04:22 PM

Is this a Linux security flaw ?
 
Hi,
If I press Ctrl+X at the LILO prompt during bootup and type this string at the boot prompt:
"linux init s"
where "linux" is the boot partition label, I enter into single user mode. The security glitch is that anybody can type passwd at the shell prompt and Linux promptly allows the root password to be changed. Is this a strength or a weakness of Linux?
Can I disable this feature?

DMR 05-08-2002 05:11 PM

There are a lot of aspects of a default configuration that could be considered security holes, and what you're describing is certainly one of the more well-known. The key word is default though, because the system admin can close the hole you describe by modifying the bootloader's config file and mucking around with a few file attributes.
Some have also argued the exploit you describe can be considered kind of moot, because someone attempting to crack your system in that way has to have physical access to the system. If they do have physical access to your box, what's to stop them from just removing your hard drive and putting it in another computer (which would bypass the bootloader altogether)?


- just my $0.02...

<edit> Instructions for securing Lilo (and more) </edit>

jayakrishnan 05-20-2002 06:22 AM

add the word
restricted
to lilo.conf
and rerun lilo

5amYan 05-24-2002 01:03 AM

get grubby


All times are GMT -5. The time now is 06:16 AM.