[LightDM] Auto login not working

Clemens Eisserer linuxhippy at gmail.com
Wed Jul 18 16:47:08 PDT 2012


Hi Robert,

> Can you attach /var/log/lightdm/lightdm.log after an attempted
> autologin? It will have the reason why. Also have a look at
> /etc/pam.d/lightdm-autologin which are the PAM rules that are used for
> autologins.

Seems autologin is not permitted on my system:
>
> [+1.06s] DEBUG: Automatically logging in user ce
> [+1.06s] DEBUG: Started session 940 with service 'lightdm-autologin', username 'ce'
> [+1.07s] DEBUG: Session 940 authentication complete with return value 6: Permission denied
> [+1.07s] DEBUG: Autologin failed authentication
> [+1.07s] DEBUG: Session 940: Sending SIGTERM


Strange, it worked on Fedora 16.

Contents of /etc/pam.d/lightdm-autologin are:
>
> #%PAM-1.0
> auth    requisite       pam_nologin.so
> auth    required        pam_env.so readenv=1
> auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
> auth    required        pam_permit.so
> @include common-account
> session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
> session required        pam_limits.so
> @include common-session
> session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
> @include common-password

Thanks for taking time helping me :)

- Clemens


More information about the LightDM mailing list