On Wed Jun 23 1999 at 08:51, Song Jianping wrote:
> Hello all,
> Today someone login my linux box by single user mode, and changes
> root password. It's very dangerous. Now i have to do the same thing
> to change it back. Can I restrict the access to single user mode?
> For example, asking for a password?
>
> Thanks.
The man pages for lilo and lilo.conf tell you how to set a
"restricted" password for preventing exactly this sort of thing.
You'll need to chmod 600 /etc/lilo.conf after you do this (to hide the
password from other users).
It still won't prevent access via a boot disk. For this sort of
protection you'll need to turn off booting from the floppy, and then
password protect the bios.
We use this sort of strategy on a shared departmental laptop, with
considerable success.
Cheers
Tony