LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-01-2007, 09:47 AM   #1
dgr
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
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
 
Old 10-01-2007, 10:56 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by dgr View Post
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.
 
Old 10-01-2007, 11:19 AM   #3
dgr
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
{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
 
Old 10-01-2007, 11:59 AM   #4
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Can you SSH into your box and starting vncserver when you need it?
 
Old 10-01-2007, 12:59 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by dgr View Post
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-login Without user and password hraposo Fedora 1 07-12-2006 07:15 AM
a similar program to roboform (password/auto login prog) in kde/linux? zeltak Linux - Software 1 02-10-2006 06:55 AM
Auto Login User ImpactDNI Linux - Software 7 04-21-2005 03:28 PM
how do i make a software auto start after login? 286 Linux - Newbie 2 01-21-2004 06:42 PM
Removing Root Password/Auto login friendklay Linux - General 7 05-13-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration