Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is there any way to allow me to login as root ?

Posted on 2000-03-21
1
Medium Priority
?
174 Views
Last Modified: 2013-12-15
I have redhat 6.0, Is there any way to allow me to login as root instead of using user and su to server.

Remark :I remember someone tell me one of the secuity file from /etc/ ...

0
Comment
Question by:edmundli
1 Comment
 
LVL 3

Accepted Solution

by:
alien_life_form earned 120 total points
ID: 2640912
Greetings.

Yes you can, but if your machine is on the internet it is a bad, BAD idea. Lamers with scanners and automated password guessing tools will then be able to probe root directly, and that's unnerving.

However. The file you're looking for  is /etc/securetty. you can stick some ttyp<0..9> in there, besides the consoles you'll find. Alternatively, you can take the securetty stuff off /etc/pam.d/ files (on a second thought, forget I wrote this - mucking around PAM is not best for your machine health).

As activity on these files can lock you out of your machine, exercise some caution and keep a backup terminal handy.

From another question of yours on this same forum, I understand you are mostly working as root on your machine, and my advice is: don't. Create another user and su as needed.

Sooner or later you'll give some sort of bonehead command (we all do) and, if you do that as root, you'll regret it dearly. If you really really need to be root all the time, at least stick alias rm='rm -i' in /root/.bashrc

Cheers,
  alf
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

885 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