LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04: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 05:36 AM.
 
Old 12-15-2005, 10: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-17-2005, 11:47 PM   #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, 01:44 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 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
Open Source Consulting | Domain Registration