I am trying to enable autologin but when I go to System Settings > User Accounts my account is listed as (null) and autologin cannot be enabled.

(null) user account

What should I do ?

  • I guess this might be a bug. Are there any non-ASCII characters in your username / login name? – lemonslice Dec 2 '16 at 16:48
  • no. there aren't any non asci characters in it – Suici Doga Dec 4 '16 at 14:00

You can try to do so using command line. Here's the help page. In particular you need to use,

sudo nano /etc/lightdm/lightdm.conf

and thereafter, add the following lines,

[SeatDefaults] autologin-user=<YOUR USERNAME> autologin-user-timeout=0 user-session=ubuntu greeter-session=unity-greeter

This is slightly different than what's mentioned in help page since that's for older release.

Edit - Here's another answer.

  • Works but breaks the lock screen. – m0skit0 Jul 29 '19 at 9:10

I am on Hera - Elementary 5.1.

Tried many ways. This is the only way working for me.





lightdm --show-config

G  greeter-session=false
A  user-session=pantheon
B  allow-guest=false
D  greeter-wrapper=/usr/lib/lightdm/lightdm-greeter-session
E  guest-wrapper=/usr/lib/lightdm/lightdm-guest-session
F  xserver-command=X -core
G  autologin-user=xx
G  autologin-user-timeout=0
H  autologin-guest=false

C  backup-logs=false

A  /usr/share/lightdm/lightdm.conf.d/40-io.elementary.greeter.conf
B  /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
C  /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
D  /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
E  /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
F  /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
G  /etc/lightdm/lightdm.conf.d/01-xx.conf
H  /etc/lightdm/lightdm.conf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.