LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 02-21-2013, 09: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, 10:09 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,141

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
Note that the "run level" concept is depreciated, and, basically, obsolete in distributions using systemd. What distribution are you using?
 
Old 02-22-2013, 04: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, 05:08 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
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, 07: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, 09:13 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,787

Rep: Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359
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, 04:03 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,093

Rep: Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04: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 12:15 AM
Can't switch to TTY or run level 3 from run level 5 reemfz Fedora 3 06-01-2009 08: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 04:55 PM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
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