LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 06: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, 08: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, 12:15 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

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, 12:21 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 03:01 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,127

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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, 03:09 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 06:03 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 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
Open Source Consulting | Domain Registration