LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - General (http://www.linuxquestions.org/questions/forumdisplay.php?f=1)
-   -   Password on run-level 1 (http://www.linuxquestions.org/questions/showthread.php?t=4175451126)

Siddharth Sharma 02-21-2013 09:34 AM

Password on run-level 1
 
hello..
how to set password on runlevel 1.

PTrenholme 02-21-2013 10:09 AM

Note that the "run level" concept is depreciated, and, basically, obsolete in distributions using systemd. What distribution are you using?

Siddharth Sharma 02-22-2013 04:10 AM

i am using RHEL6 and RHEL 5.4 server edition..

chrism01 02-22-2013 05:08 AM

Its just
Code:

passwd username
assuming you're logged in as root. To change root's passwd, you can skip specifying the root username.

Siddharth Sharma 02-25-2013 07:03 AM

i m asking for init S or init 1 not for init 5.
when we boot our linux os we can place bootloader password but i wan t to give password on init 1(run level 1) so no one can enter or get access in runlevel 1..

TB0ne 02-25-2013 09:13 AM

Quote:

Originally Posted by Siddharth Sharma (Post 4899218)
i m asking for init S or init 1 not for init 5.
when we boot our linux os we can place bootloader password but i wan t to give password on init 1(run level 1) so no one can enter or get access in runlevel 1..

...which you can't, since runlevel 1 is only single user for maintenance/rescue purposes. And even if you could, it's pointless, since someone can just boot the system with a CD/DVD/USB drive, mount the drive from there, and remove the password from the shadow file.

John VV 02-25-2013 04:03 PM

As above
the boot password is almost as useless
with the exception of on say a laptop
your "normal below average" thief will not know how to bypass it
( unless they can use google)


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