LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2012, 07:27 AM   #1
maddy-pim
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
How many ways to disable root user login not in GUI as well as CLI mode?


For security feature I have to disabled root login (CLI & GUI) in my company, so that how can I disabled it?
 
Old 08-23-2012, 09:42 AM   #2
cortman
Member
 
Registered: Jan 2012
Location: ZZ9 Plural Z Alpha
Distribution: Crunchbang 11, LFS 7.3, DSL 4.1.10, Lubuntu 12.10, Debian 7
Posts: 219

Rep: Reputation: 43
Quote:
Originally Posted by maddy-pim View Post
For security feature I have to disabled root login (CLI & GUI) in my company, so that how can I disabled it?
Ubuntu has the root account disabled by default and uses sudo; you could use that.
Or edit /etc/passwd, per instructions here.
Since passwd applies for both GUI and CLI, it will disable both.
 
Old 08-23-2012, 01:15 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
It's difficult to understand why this is a security feature. Sounds like security by obscurity. What do you want to achieve?
 
Old 08-23-2012, 01:21 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by maddy-pim View Post
For security feature I have to disabled root login (CLI & GUI) in my company, so that how can I disabled it?
This does not make sense.....do you mean that you want to enable it again?
 
Old 08-23-2012, 04:01 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I want to say delete the root account.


Could make a password that is so long it takes forever to put it in.
 
Old 08-23-2012, 04:09 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
How do you intend to do any administrative work? Are you planning on just giving one of the users full sudo capability? Because that seems like a big step backwards as far as security goes.
 
Old 08-23-2012, 07:03 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you want to disable REMOTE root login, then set
Code:
PermitRootLogin no
in /etc/ssh/sshd_config.

For local login, as above, disabling it is risky; you might paint yourself into a corner.
Giving full sudo rights to another user a la Ubuntu is non-std.
If you are the Company Admin and you want to stop local users using root, then change the passwd to something only you know & make it strong).
Note that physical access to a box means they could bypass that ...
 
  


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
root login is disable only on GUI bharatlalgupta Red Hat 10 12-22-2009 01:10 AM
How to disable root login in GUI (RHEL5)? saagar Linux - Newbie 4 08-06-2009 12:54 PM
i m running ubuntu 8.10 .unable to login as a user in gui mode. chandan766 Linux - Newbie 1 04-05-2009 06:03 PM
suse 9.3 root cannot login in GUI mode morph_ind SUSE / openSUSE 11 05-15-2006 02:15 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration