After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344191 - Autologin now prompts for password
Autologin now prompts for password
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
: 344509 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-06-07 18:37 UTC by Scott Harmon
Modified: 2006-06-18 09:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Syslog from boot to where it shows the password dialog (11.14 KB, text/plain)
2006-06-07 20:30 UTC, Scott Harmon
  Details
After typing in the correct password (2.33 KB, text/plain)
2006-06-07 20:32 UTC, Scott Harmon
  Details
gdm.conf (22.72 KB, text/plain)
2006-06-07 20:33 UTC, Scott Harmon
  Details
defaults.conf (27.07 KB, text/plain)
2006-06-07 20:34 UTC, Scott Harmon
  Details
patch to fix problem (586 bytes, patch)
2006-06-09 03:58 UTC, Brian Cameron
none Details | Review
patch to fix warnings (14.49 KB, patch)
2006-06-09 21:13 UTC, Brian Cameron
none Details | Review
Modified gdm.spec file (42.49 KB, text/plain)
2006-06-17 02:51 UTC, Eric Work
  Details

Description Scott Harmon 2006-06-07 18:37:50 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:
Comment 1 Brian Cameron 2006-06-07 19:05:52 UTC
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.)




   
Comment 2 Scott Harmon 2006-06-07 19:37:12 UTC
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.
Comment 3 Brian Cameron 2006-06-07 19:53:39 UTC
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.

Comment 4 Scott Harmon 2006-06-07 20:30:55 UTC
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.
Comment 5 Scott Harmon 2006-06-07 20:32:44 UTC
Created attachment 66934 [details]
After typing in the correct password

This is the syslog from where I typed in the password to gnome loaded.
Comment 6 Scott Harmon 2006-06-07 20:33:29 UTC
Created attachment 66935 [details]
gdm.conf

This is the gdm.conf
Comment 7 Scott Harmon 2006-06-07 20:34:12 UTC
Created attachment 66936 [details]
defaults.conf

This is /usr/share/gdm/defaults.conf
Comment 8 Brian Cameron 2006-06-09 03:58:58 UTC
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.
Comment 9 Brian Cameron 2006-06-09 21:13:03 UTC
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.
Comment 10 Scott Harmon 2006-06-09 23:39:51 UTC
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.
Comment 11 Elijah Newren 2006-06-10 20:41:34 UTC
*** Bug 344509 has been marked as a duplicate of this bug. ***
Comment 12 fuxialis 2006-06-10 21:08:46 UTC
I am  using fedora 5 and updated gdm from rpm using yum. Can you give me some directions to fix problem?
Comment 13 Eric Work 2006-06-11 01:22:39 UTC
I am seeing this same problem in FC5 after gdm was recently upgraded to 2.14.8.
Comment 14 Brian Cameron 2006-06-11 20:13:20 UTC
Thanks, I applied the patch to the 2.14 and head branches.  
Comment 15 Eric Work 2006-06-12 19:05:54 UTC
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.
Comment 16 fuxialis 2006-06-16 19:54:50 UTC
can you attach RPM? maybe? please:)
Comment 17 Brian Cameron 2006-06-16 21:07:26 UTC
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.

Comment 18 Eric Work 2006-06-17 02:50:42 UTC
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.
Comment 19 Eric Work 2006-06-17 02:51:49 UTC
Created attachment 67524 [details]
Modified gdm.spec file
Comment 20 Jason 2006-06-17 14:27:10 UTC
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. 
Comment 21 fuxialis 2006-06-18 09:21:01 UTC
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?