LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to enable auto login for root in Redhat (https://www.linuxquestions.org/questions/programming-9/how-to-enable-auto-login-for-root-in-redhat-352772/)

alix123 08-13-2005 02:23 AM

How to enable auto login for root in Redhat
 
Hii all

How can I enable auto login for root user in redhat ES AS and WS 3.0 versions.

Basically i want the when i boot linux it should not prompt me to enter login and password. every time it after a reboot or shutdown it should auto login as root.

bp12345 08-13-2005 02:39 AM

Are you using GDM or KDM?
In KDE, with KDM, open the control panel and go down to 'system administration', under that select 'login manager' and click 'administrator mode' (unless you are root already). From there you can enable auto-login and password-less login for certain users.
For GDM, you can edit /etc/gdm/gdm.conf and you probably can find an option to allow that somewhere.
I would strongly reccommend that you do not do that, as logging in as root automatically, and without a password esentially bypasses all the security on your system (except perhaps a firewall), so anyone who has physical access ro can hack into it from the web can see, execute, and modify everything on your computer. If you want the convenience of auto-login, do so as a normal user, and actually you should use only a normal user for almost all tasks.

stevod333 06-17-2007 04:09 PM

Ithout a GUI?
 
Anyone have any idea how to do it in runlevel 3 (text only, no GUI) on Fedora core 6?

I agree it should really never be done for security reasons, but in my situation, the machine will almost never be on a network and will not have an easily accessible keyboard or monitor... and it wouldn't be a big deal if anyone did get into it.

dozierc 06-25-2007 06:12 PM

Quote:

Originally Posted by stevod333
Anyone have any idea how to do it in runlevel 3 (text only, no GUI) on Fedora core 6?

I agree it should really never be done for security reasons, but in my situation, the machine will almost never be on a network and will not have an easily accessible keyboard or monitor... and it wouldn't be a big deal if anyone did get into it.


try this link here

http://linuxgazette.net/issue27/kodis.html

jlinkels 06-25-2007 09:49 PM

Why would you want to do that anyway. If it is not on the network and not easily accessible why do you need to have a terminal logged in as root?

Linux runs just fine without anyone logged in. Logging in is just establish a user interface between the shell and a human being. You can do that on a terminal. Once, twice, six times ... or none.

jlinkels

stevod333 06-27-2007 12:43 AM

Quote:

Originally Posted by jlinkels
Why would you want to do that anyway. If it is not on the network and not easily accessible why do you need to have a terminal logged in as root?

Linux runs just fine without anyone logged in. Logging in is just establish a user interface between the shell and a human being. You can do that on a terminal. Once, twice, six times ... or none.

jlinkels


Good point...

The intended purpose of the system is an in car PC, a replacement of the original EFI control - A service will monitor engine statistics and output the injector pulse and any error status codes via one or two LED's.
Inputs are also accepted for adjustment/tuning purposes. It has just occurred to me that since nearly all I/O will be through the parallel port (no keyboard will be connected), the entire control system can be run as a service... as long as I can SSH into the system if necessary, there should never be any need for a local login.

Thanks for the eye-opener :)


All times are GMT -5. The time now is 10:21 PM.