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

Posted on 2000-03-21
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/ ...

Question by:edmundli
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

alien_life_form earned 30 total points
ID: 2640912

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


Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

729 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