Solved

Preventing Root Login

Posted on 2008-10-20
4
529 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now