LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make a user id & password auto login? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-user-id-and-password-auto-login-588627/)

dgr 10-01-2007 09:47 AM

how to make a user id & password auto login?
 
hello,
Is there a way to configure Red Hat Linux so that a user id and password will automatically be entered and it will reboot to the desktop instead of sitting at a login screen waiting for a user id? We occasionally reboot our server remotely from home, and when it reboots it stops at the login screen, and unfortunately the VNC server service doesn't start until your logged in, so you can't restablish a remote connection to the server.
Alternatively, is there a way to have the VNC server service automatically start and not wait on someone to log into the server?
I'd rather though just have the server not wait for someone to login.
thanks in advance,
david

{BBI}Nexus{BBI} 10-01-2007 10:56 AM

Quote:

Originally Posted by dgr (Post 2909366)
hello,
Is there a way to configure Red Hat Linux so that a user id and password will automatically be entered and it will reboot to the desktop instead of sitting at a login screen waiting for a user id? We occasionally reboot our server remotely from home, and when it reboots it stops at the login screen, and unfortunately the VNC server service doesn't start until your logged in, so you can't restablish a remote connection to the server.
Alternatively, is there a way to have the VNC server service automatically start and not wait on someone to log into the server?
I'd rather though just have the server not wait for someone to login.
thanks in advance,
david

If you are using Gnome. To enable automatic login, add (or change) the following directives to /etc/X11/gdm/gdm.conf:

AutomaticLoginEnable=true
AutomaticLogin=<valid_username>


where <valid_username> is a valid user on the system.

dgr 10-01-2007 11:19 AM

{BBI}Nexus{BBI}
Hello,
Do I also need to enter the password of the user name into the gdm.conf?
When I looked at the gdm.conf, it mentioned the gdmsetup GUI near the top, so I ran that from a Terminal. On the general tab under Auto Login it doesn't show any place to put a password.
I also was wondering if maybe it'd be better to tackle this problem by just getting remote VNC connections working and login remotely from the login screen. I looked around the gdmsetup GUI and noticed on the Security tab the Always disallow TCP connections to X server (disables all remote connections) is currently checked. If I uncheck that, would I then be able to VNC to the server login screen after reboot? Or do I need to do something else to make remote VNC to work after reboot.

thanks,
david

SlowCoder 10-01-2007 11:59 AM

Can you SSH into your box and starting vncserver when you need it?

osor 10-01-2007 12:59 PM

Quote:

Originally Posted by dgr (Post 2909458)
Do I also need to enter the password of the user name into the gdm.conf?
When I looked at the gdm.conf, it mentioned the gdmsetup GUI near the top, so I ran that from a Terminal. On the general tab under Auto Login it doesn't show any place to put a password.

I am not sure about the specifics of gdm.conf, but I donít see why you would need to specify a password. Since gdm runs with root privileges (and since root privileges are required to edit the conf file), it can change to whatever user it pleases (without any password).


All times are GMT -5. The time now is 01:05 AM.