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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

813 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

14 Experts available now in Live!

Get 1:1 Help Now