LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-22-2002, 09:17 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Unhappy 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
------------------------------------
 
Old 02-22-2002, 09:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 02-23-2002, 04:16 AM   #3
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
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.

 
Old 02-24-2002, 11:22 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

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

-trickykid
 
Old 02-24-2002, 12:22 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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').
 
Old 02-24-2002, 12:41 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

Last edited by trickykid; 02-24-2002 at 12:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protecting LILO boot menu items? Surfrider Linux - Software 1 11-07-2005 02:12 AM
Change Colors and set password on Lilo thenowherekid Linux - Newbie 3 08-26-2005 02:22 AM
unable to install LILO nor set root password aquilolumen Slackware - Installation 10 07-07-2005 01:15 PM
LILO - Trying to set up Triple Boot system davecs Linux - Software 4 11-07-2003 05:09 PM
set password to boot lilo ? hitesh_linux Linux - General 2 02-22-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration