Discussion:
Automatic login with gdm not working
Dominique Goncalves
2008-03-20 20:05:27 UTC
Permalink
Hi,

I'd like to use automatic login with gdm for the user "dom" but it's
not working. I just read the gnome faq #23
GDM starts like usual asking a username and a password.

My configuration:

%cat /etc/pam.d/gdm-autologin
auth required pam_nologin.so
auth required pam_permit.so
account required pam_unix.so
session required pam_permit.so

%grep -A 2 security /usr/local/etc/gdm/custom.conf
[security]
AutomaticLoginEnable=true
AutomaticLogin=dom

%id
uid=1001(dom) gid=1001(dom)
groups=1001(dom),0(wheel),5(operator),68(dialer),1002(share)

%grep gnome /etc/rc.conf
gnome_enable="YES"

%pkg_info |grep gdm
gdm-2.20.3 GNOME 2 version of xdm display manager

%uname -a%uname -a
FreeBSD djdomics.sceen.net 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Thu Feb
28 23:55:48 CET 2008
***@djdomics.sceen.net:/usr/obj/usr/src/sys/GENERIC i386



Let me know if you need more information.

Thanks,
Regards
--
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."
Antonios Anastasiadis
2008-03-21 22:07:54 UTC
Permalink
If the entries

AutomaticLoginEnable=true
AutomaticLogin=dom

are put under the [daemon] heading instead of [security]
in /usr/local/etc/gdm/custom.conf, GDM logins automatically again.
I guess GDM changed its way as of GNOME 2.20. I have filed a relevant
bug report.
Antonios Anastasiadis
2008-03-21 22:37:15 UTC
Permalink
forgot link

http://www.freebsd.org/cgi/query-pr.cgi?pr=121948
Dominique Goncalves
2008-03-22 11:30:52 UTC
Permalink
Hi,


On Fri, Mar 21, 2008 at 11:07 PM, Antonios Anastasiadis
Post by Antonios Anastasiadis
If the entries
AutomaticLoginEnable=true
AutomaticLogin=dom
are put under the [daemon] heading instead of [security]
in /usr/local/etc/gdm/custom.conf, GDM logins automatically again.
I guess GDM changed its way as of GNOME 2.20. I have filed a relevant
bug report.
In /var/log/messages, there is

Mar 22 12:26:34 djdomics gdm-binary[17656]: in openpam_dispatch():
pam_nologin.so: no pam_sm_authenticate()
Mar 22 12:26:34 djdomics gdm-binary[17656]: in openpam_dispatch():
pam_nologin.so: no pam_sm_setcred()

But it works now, thanks!

Regards.
--
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."
Loading...