LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-16-2012, 05:19 AM   #1
HelllBoy
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Question disabling root login


Can root login be disabled in Red hat linux??
if yes plz provide the soln with steps...
 
Old 06-16-2012, 05:33 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Yes, but WHY???

You can configure a computer so that NO-ONE can log in. But anyone with physical access to the machine can change it back.

What problem are you trying to solve?
 
Old 06-16-2012, 05:44 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbang
Posts: 613
Blog Entries: 1

Rep: Reputation: 140Reputation: 140
Quote:
Originally Posted by HelllBoy View Post
if yes plz provide the soln with steps...
I'll link you to the documentation instead.
That way, you will have a better understanding of what you're doing.
 
1 members found this post helpful.
Old 06-20-2012, 01:33 AM   #4
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 360

Rep: Reputation: 38
Make sure you set up sudo first. Then, just lock the root password:

Code:
passwd -l root
 
Old 06-20-2012, 03:20 AM   #5
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 10
I'm not sure whether completely denying login access for root is a good idea. Depending on your circumstances in terms of the physical access to the system, maybe the following is appropriate:

- Restrict root access to the physical console attached to the system by having
Quote:
console
in /etc/securetty

- Disable root login via ssh by setting
Quote:
PermitRootLogin no
in /etc/ssh/sshd_config

Hope this helps.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] disabling grafical login to root on Suse server sle 10.2 sp2 SAbhi Linux - Security 8 12-23-2011 03:34 AM
disabling root login in GUI shivanrathore Linux - Newbie 3 05-16-2008 02:31 PM
Root login disabling in GUI shivanrathore Red Hat 2 05-12-2008 05:23 PM
Disabling root login and using another username for administration mrdesai Fedora 3 08-15-2006 12:08 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 03:55 PM


All times are GMT -5. The time now is 03:13 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