Since I checked off the option “don’t ask for password on login”, I only see the “log in” button when startting but nothing happens when I click on it. Only the screen blinks once but it doesn’t log in anymore.
What can I do to get my user account working again?
It is the only account on the computer and I need it urgently
I use the MATE Desktop Environment 1.12.1
Ubuntu Release 16.04.1 LTS (Xenial Xerus) 64-bit
Kernel Linux 4.4.0-42-generic x86_64
Try this:
Power on the PC, hold SHIFT till you see the GRUB menu.
Go to "Other Options for Ubuntu" or equivalent.
Boot last kernel in recovery mode.
Select 'root' to perform admin tasks.
Once in the root shell, issue the command:
mount -o remount,rw /
Then use the command:
passwd you
(Where 'you' is your user name on the machine)
You'll be asked twice for the new password, and won't see stars echoed back to you as you type - this is normal.
Then reboot using:
init 6
Edit: advising this because of this comment from @lah7
Try @Wimpy's suggestion to edit lightdm.conf in the linked post above.
You can avoid booting into recovery by switching to tty1 using CTRL+ALT+F1 (switch back to graphics using CTRL+ALT+F7 when you're done) and login from there.
Edit: alternatively if all you care about is getting access to your files:
Create a new user from root shell using:
adduser newusername
After that you can make that user an admin using:
adduser newusername sudo
Use root shell to copy files from your old user to the new: