LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-21-2013, 10:34 AM   #1
Siddharth Sharma
LQ Newbie
 
Registered: Feb 2013
Location: Jaipur
Distribution: Rhel5, Rhel6, CentOS, MAC OS X
Posts: 13

Rep: Reputation: Disabled
Password on run-level 1


hello..
how to set password on runlevel 1.
 
Old 02-21-2013, 11:09 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Note that the "run level" concept is depreciated, and, basically, obsolete in distributions using systemd. What distribution are you using?
 
Old 02-22-2013, 05:10 AM   #3
Siddharth Sharma
LQ Newbie
 
Registered: Feb 2013
Location: Jaipur
Distribution: Rhel5, Rhel6, CentOS, MAC OS X
Posts: 13

Original Poster
Rep: Reputation: Disabled
i am using RHEL6 and RHEL 5.4 server edition..
 
Old 02-22-2013, 06:08 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Its just
Code:
passwd username
assuming you're logged in as root. To change root's passwd, you can skip specifying the root username.
 
Old 02-25-2013, 08:03 AM   #5
Siddharth Sharma
LQ Newbie
 
Registered: Feb 2013
Location: Jaipur
Distribution: Rhel5, Rhel6, CentOS, MAC OS X
Posts: 13

Original Poster
Rep: Reputation: Disabled
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..
 
Old 02-25-2013, 10:13 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,105

Rep: Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720
Quote:
Originally Posted by Siddharth Sharma View Post
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.
 
Old 02-25-2013, 05:03 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
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)
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
initializing run level 4 at inittab default level Gerwar Linux - General 3 01-17-2011 05:38 PM
[SOLVED] Intruders can log in to my Linux box using run level 1 without using the password ?? Andrew Dufresne Linux - Newbie 4 03-23-2010 01:15 AM
Can't switch to TTY or run level 3 from run level 5 reemfz Fedora 3 06-01-2009 09:06 AM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 05:55 PM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 04:31 AM


All times are GMT -5. The time now is 07:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration