Skip to content
Unix Server Solutions
  • Server
  • Apple
  • Database
  • Ubuntu
  • Linux

Ubuntu – How to login to Ubuntu 18.04 without a password

loginlogin-screenpassword

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?

Best Answer

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.

Related Solutions

Ubuntu – Auto select user on login screen

If your goal is to simply login without using your mouse, the easiest method on a single-user system would be to simply hit the 'Enter' key when the login screen first loads. This will select your name and place your cursor in a password box. I use this method on one of my lucid machines, and it works just fine.

Ubuntu – The user login password

i would suggest booting in safe mode (there you get a root shell even if you don't know the current password)

and there you can reset your password by typing

passwd <yourusername> this will prompt you for a new one.

how to boot save mode: https://help.ubuntu.com/community/LostPassword

Related Question
  • Ubuntu – Auto select user on login screen
  • Ubuntu – The user login password
  • Ubuntu – How to disable passwordless login
  • Ubuntu – How to get Ubuntu to ask me for a password at login again