Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-01-2007, 09:47 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Posts: 25
Rep:
|
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
|
|
|
10-01-2007, 10:56 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
Quote:
Originally Posted by dgr
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.
|
|
|
10-01-2007, 11:19 AM
|
#3
|
LQ Newbie
Registered: Aug 2007
Posts: 25
Original Poster
Rep:
|
{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
|
|
|
10-01-2007, 11:59 AM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250
Rep: 
|
Can you SSH into your box and starting vncserver when you need it?
|
|
|
10-01-2007, 12:59 PM
|
#5
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
Quote:
Originally Posted by dgr
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:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|