Solved

Preventing Root Login

Posted on 2008-10-20
4
531 Views
Last Modified: 2013-12-16
I inherited a Redhat Linux system to administer.  While I'm nobody's Sysadmin (network is my thing) - I do know that direct login using "root" is generally a no-no.  Right?  That's how the previous owner would SSH to the box - using "root" for user name.  How do I prevent direct access with "root" and but make sure I don't log myself out of any essential access.  My guess is first I can log in with my own UID and su to root and make sure that is all cool.  (It is.)  But then how do I prevent direct root login?
0
Comment
Question by:amigan_99
4 Comments
 
LVL 5

Expert Comment

by:Tuxx
ID: 22759376
Logging in as root in GUI i usually prohibited by most distros. However, in the bootloader it is allowed. You will need to enter the GRUB prompt and follow the instructions on the page to lock access to the CLI root boot entry.
http://www.gnu.org/software/grub/manual/html_node/Security.html
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 22759413
check this question :

http://www.experts-exchange.com/Security/Operating_Systems_Security/Linux/Q_23604111.html

you can use key authentication instead of using direct root access by ssh
0
 
LVL 8

Accepted Solution

by:
StrongBad_Rules earned 250 total points
ID: 22759424
There are a variety of ways to answer that question, but here is a good place to start:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-wstation-privileges.html

0
 
LVL 1

Author Closing Comment

by:amigan_99
ID: 31507878
Perfect - thank-you.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 74
issue in getting eth0 IP in oracale virtual box Linux VM 4 54
Setting up static IP - Ubuntu server 16.04 12 64
awk file 6 53
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question