Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
"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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.