GNOME Bugzilla – Bug 344191
Autologin now prompts for password
Last modified: 2006-06-18 09:21:01 UTC
Please describe the problem: In gdm 2.14.4 autologin did not prompt for a password. In gdm 2.14.7 autologin now prompts for a password. Here is the relevant part of gdm.conf: AutomaticLoginEnable=true AutomaticLogin=harmon Using the exact same gdm.conf for both 2.14.4 and 2.14.7 (reverting to gdm-2.14.4 causes autologin to behave as expected). In gdm 2.14.7 a small password dialog is presented upon autologin. Steps to reproduce: 1. Install gdm 2.14.7 2. Enable autologin 3. Start gdm Actual results: Presented with a gui password dialog Expected results: Login directly to the user account specified in gdm.conf without password prompt Does this happen every time? Yes Other information:
You don't say what distro you are using and you also don't say if GDM is configured to use PAM, shadow passwords, or crypt. It's probably PAM, but figuring out the answer to your problem is hard without knowing. When you run "configure", it should tell you at the end whether it is using PAM or not. Note that if you are using Solaris, this behavior is expected. Refer to the 2,15 GDM docs here: http://www.gnome.org/projects/gdm/docs.html Go to the "Solaris" section and note the subsection that is titled "Solaris Automatic Login". Even if you aren't on Solaris, if your PAM is not configured to support automatic/timed login, then it will not work, and this section would apply to you. Please let me know if the information in the documentation resolves your issue or helps you to understand the problem better. Do you see errors in the log files (syslog, /var/lib/log/gdm, $HOME/.xsession_errors, etc.)
This is on Linux. The distro is slackware w/dropline GNOME. GDM is configured for PAM. The strange thing is that this has worked for all previous versions of gdm that I have tried. I did not see any errors in those files. Here is the /etc/pam.d/gdm-autologin file: #%PAM-1.0 auth required pam_env.so auth required pam_nologin.so auth required pam_permit.so account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth session required pam_stack.so service=system-auth session optional pam_console.so This is identical to the one used for gdm 2.14.4. If I simply switch back to gdm 2.14.4 (on the exact same machine), autologin works.
This is strange. Can you send me the following: 1) Turn on enable=true in the [debug] section of your configuration file, and restart GDM. Then send me the syslog output (/var/log/messages) that GDM sent to the syslog. 2) Send me your /usr/share/gdm/defaults.conf and /etc/X11/gdm/custom.conf file. You can send these to Brian.Cameron@sun.com or attach them to this bug report.
Created attachment 66932 [details] Syslog from boot to where it shows the password dialog This is from where gdm starts until it shows the password dialog.
Created attachment 66934 [details] After typing in the correct password This is the syslog from where I typed in the password to gnome loaded.
Created attachment 66935 [details] gdm.conf This is the gdm.conf
Created attachment 66936 [details] defaults.conf This is /usr/share/gdm/defaults.conf
Created attachment 67014 [details] [review] patch to fix problem Please test the attached patch to see if it fixes the problem. If it does, then I'll check back in the code. Please also verify that GDM works reasonably with AutomaticLogin turned off with this patch.
Created attachment 67070 [details] [review] patch to fix warnings Thanks for the suggestion and sharing the warnings. I'm using a different compiler (SunStudio), which wasn't reporting those issues. I do think some of them are serious, and since they affect the gdmconfig code, it is very possible that these warnings are leading to the problem. I've attached a patch. Could you build your code with this patch and test it? I've also checked this patch into CVS head and 2.14 branch if you just want to grab the new code from CVS. Hopefully this will correct the problem. If so, I'll do another 2.14 and 2.15 release since this seems a pretty serious issue.
http://bugzilla.gnome.org/attachment.cgi?id=67014&action=view This patch fixed the problem for me...when autologin is enabled it logins in automatically, and when it is not enabled it logs me in when I type my username and password. Thanks! :-) Scott.
*** Bug 344509 has been marked as a duplicate of this bug. ***
I am using fedora 5 and updated gdm from rpm using yum. Can you give me some directions to fix problem?
I am seeing this same problem in FC5 after gdm was recently upgraded to 2.14.8.
Thanks, I applied the patch to the 2.14 and head branches.
I just wanted to add that your patch also fixed the problem for me. I rebuilt the latest FC5 SRPM with your second patch and it worked just as expected.
can you attach RPM? maybe? please:)
Sorry, I can't. I work on Solaris, so I don't work with RPM's. Perhaps someone else reading this bug report can help you out. However, the new releases of GDM have this fix.
The SRPM is 3MB which is rather large so I will just attach the modified SPEC file. Save the patch with fixed warnings as 'gdm-2.14.8-autologin.patch' and put it in the sources directory. You can download the SRPM from http://download.fedora.redhat.com under updates. That should be enough to get it built. I'm sure the next release from fedora will have this fixed.
Created attachment 67524 [details] Modified gdm.spec file
Cheap, carelessly compiled rpm for gdm 2.14.9: http://www.montleon.com/gdm-2.14.9-0.i386.rpm You can get the same effect by doing the following: Download and install: ftp://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/SRPMS/gdm-2.14.8-1.src.rpm Download: http://ftp.acc.umu.se/pub/GNOME/sources/gdm/2.14/gdm-2.14.9.tar.bz2 Place the file in /usr/src/redhat/SOURCES Change the line in /usr/src/redhat/SPECS/gdm.spec that reads 'Version: 2.14.8' to read 'Version: 2.14.9' Make sure you are in /usr/src/redhat/SPECS/ and run 'rpmbuild -ba gdm.spec' You should have the binary, source, and debug info binaries when you are done. Mileage may, and is likely to, vary.
Jason, you are god:) That rpm wasn't very worthy as I'm using x86_64. So I followed Your steps and YES! no annoying passwords anymore. Now I can push the button and go to bath and I know that after minute i will hear some morning music:) As i said You are god:) Thank you all for your help! P.S. Maybe montleon can add x86_64 version?