Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 06-16-2012, 06:19 AM   #1
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, 06:33 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
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, 06:44 AM   #3
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 729
Blog Entries: 1

Rep: Reputation: 163Reputation: 163
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, 02:33 AM   #4
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 363

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

passwd -l root
Old 06-20-2012, 04:20 AM   #5
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
in /etc/securetty

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

Hope this helps.


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 04:34 AM
disabling root login in GUI shivanrathore Linux - Newbie 3 05-16-2008 03:31 PM
Root login disabling in GUI shivanrathore Red Hat 2 05-12-2008 06:23 PM
Disabling root login and using another username for administration mrdesai Fedora 3 08-15-2006 01:08 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 04:55 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration