LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2005, 05:48 AM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
passing bootable flags to init at boot ?


Hi,

I got interested in the processes of init and while i was reading the manual i stumbled upon a fact that i can pass bootable flags to init during boot, that initerests me very much for it is being a potential security threat if i can just boot as a single user at any time...

i know i can protect against that though, with password at boot.

what i dont know is how do i pass those bootable flags during boot to init, please help.
I'm using grub as bootloader.

Thanks a lot.

Last edited by Infernal211283; 12-15-2005 at 06:36 AM.
 
Old 12-15-2005, 11:49 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
i stumbled upon a fact that i can pass bootable flags to init during boot, that initerests me very much for it is being a potential security threat if i can just boot as a single user at any time...
Are you intending to ask about boot flags to init? Or are you really asking about passing parameters to the kernel?

If the latter, you can simply type them at the grub boot prompt and hit enter (at least in the grub implementations I've seen). So typing
Code:
1
and then continuing to boot normally would get you to single-user mode.
 
Old 12-18-2005, 12:47 AM   #3
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
The man init has this info:


"BOOTFLAGS
It is possible to pass a number of flags to init from the boot monitor
(eg. LILO). Init accepts the following flags:

-s, S, single
Single user mode boot. In this mode /etc/inittab is examined and the
bootup rc scripts are usually run before the single user mode shell
is started.

1-5 Runlevel to boot into.

-b, emergency
Boot directly into a single user shell without running any other
startup scripts. etc etc..."

The option "1" to the kernel is great i can use it too, thanks, but when do i get to use those init boot flags then?

sorry for the late reply...
 
Old 12-18-2005, 02:44 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,183

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Someone who has access to the console has access to the machine. Period.

You can, and should, use boot-passwords and other things to prevent "casual access" to the console ... but physical security is needed too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel Panic No init found. Try passing init..... Adrian Baker Mandriva 2 02-28-2005 12:47 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-19-2004 12:10 AM
error: No init found. Try passing the init= option to the Kernel neylitalo Linux - Laptop and Netbook 3 01-22-2004 10:34 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 11:18 PM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 04:38 AM


All times are GMT -5. The time now is 05:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration