6

I have just upgraded to Ubuntu 18.04 from 16.04 and I appear to have lost my ability to login without a password. This is something that I used in 16.04 for a media player computer that I have in my living room.

This question appears to have been asked before, and has been marked as a duplicated here:

How can I log in to Ubuntu 18.04 without a password? Setting auto login doesn't work

However, the answers are about auto-login and I do not want this. I want to get a login dialog with a user name that requires no password, not one that auto-logins in on boot. This is so that I can choose which account to login in to (I have one account for playing media and my own "real" account which I use for sys admin), or so that I can choose session types (my media account mostly uses kodi, but sometimes I need a desktop).

This was possible with previous versions of Ubuntu:

http://ubuntuhandbook.org/index.php/2013/07/login-without-a-password-on-ubuntu/

Has it been lost in 18.04?

Phil Lord
  • 226

2 Answers2

8

I do exactly this myself, and upgraded the box from 16.04 to 18.04 a few weeks ago - with zero ill effects.

Run sudo passwd -d username to delete the password for this user.

That should allow you to login without entering a password, and works fine for me on 18.04

If this is your only account on the machine, you should probably either configure passwordless sudo, or add a second account with administrative privileges.

vidarlo
  • 23,497
3

Worked on ubuntu 18.04

sudo nano /etc/gdm3/custom.conf

Go to # Enabling automatic login section Uncomment and do following changes "readib" is username.

AutomaticLoginEnable = true
AutomaticLogin = readib