LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   set password to boot lilo ?? (https://www.linuxquestions.org/questions/linux-security-4/set-password-to-boot-lilo-14869/)

hitesh_linux 02-22-2002 09:17 AM

set password to boot lilo ??
 
Hello Everybody,

I have given my lilo.conf file below.i wanted to give a password when lilo is booting.what should i do ,and it also not boot in "single" mode.

Hitesh

------------------------------
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=100
message=/boot/message
linear
default=StgLinux

image=/boot/vmlinuz-2.2.16-22
label=StgLinux
root=/dev/hda2
read-only
restricted
password=stglinux

other=/dev/hda1
label=Windows 2000
------------------------------------

acid_kewpie 02-22-2002 09:34 AM

that will only ask for a password when you DO specify single or such like, i.e. override system defaults. if you want a complete password, i'd recommend using a bios password as well. rememebr to run "lilo" after you edit the conf file of course...

karunesh 02-23-2002 04:16 AM

Only Single User Mode
 
This will ask for password when you are trying fr Single User Mode through "linux single" or -S.It will not help you for everytime asking for password when you are booting in normal mode.

:Pengy:

trickykid 02-24-2002 11:22 AM

Re: Only Single User Mode
 
Quote:

Originally posted by karunesh
This will ask for password when you are trying fr Single User Mode through "linux single" or -S.It will not help you for everytime asking for password when you are booting in normal mode.

:Pengy:

no, everytime after he selects linux, it will ask for a password in any mode.

-trickykid

acid_kewpie 02-24-2002 12:22 PM

Re: Re: Only Single User Mode
 
Quote:

Originally posted by trickykid
no, everytime after he selects linux, it will ask for a password in any mode.

-trickykid

man lilo.conf:

restricted
A password is only required to boot the image if parameters are
specified on the command line (e.g. 'single').

trickykid 02-24-2002 12:41 PM

actually this isn't totally secure though when you place a password in your lilo.conf. though when using this option, its good to have the file so its only readable by root. but i guess the man pages are stating its only really necessary to have password to prevent users to booting into single mode so they can't gain root access on the system, cause if you use a password, it will prompt for the password in any mode you select at startup.


All times are GMT -5. The time now is 01:34 AM.