7

I'm running Ubuntu 14.04 fully updated on my laptop. Since the last update every time I lock the screen (when leaving my room for example) - when I get back and input my password, it is not accepted even though it's the correct password, the error I get is:

Password incorrect, please try again

I found that clicking the "Switch Account" fixes the issue but it is very annoying, if you know any way to fix it, it would be nice. Thanks in advance

5 Answers5

3

I've found that in some cases the input language is set to Hebrew even though it shows a "EN" icon in the gnome systray, hitting the input language changer sequence does nothing visibly but when I enter the password again it works.

3

Have the same issue with 16.04.

I know it might not be the perfect solution, but the trick is to simply click on the switch user button in the right corner. Put in your password and it works.

0

This isn't a direct answer, but instead of lockimg, you can use switch user screen, and set a shorcut for that.

Go to System Settings -> Keyboard -> Shortcuts -> Custom Shorcuts, then add a new one. In the "what command to be executed" line, type:

dm-tool switch-to-greeter

And then assign your chosen keypresses to it.

Tim
  • 33,500
-1

Try this:

sudo chown root /etc/shadow
sudo chmod u=r,g=r /etc/shadow
Parto
  • 15,647
Vikram
  • 1
-2

This procedure gives you a full root shell! You can damage your system if you are not careful!

When booting up press SHIFT and use the arrow keys to select the rescue mode option and press enter.

The file system may be read only (it is in all currently supported releases). Remount as read write

mount -rw -o remount /

This will boot the system in rescue mode and you should arrive at a prompt that looks like this

root@something

To reset your password type this in

passwd <username>

Press return, then you will be prompted to enter and confirm a new password. Once you are done resetting your password you can than switch back to the normal GUI mode by putting this in

init 2

If if appears to boot normally, but you see a message that says:

Give root password for maintenance (or type Control-D to continue): 

then you will need a different solution.

Next Option

If the "Standard Way" does not work for you and you recieve the "Give root password for maintenance" message, you can recover your password using the following steps

  1. Reboot your computer

  2. Press SHIFT or ESC at the grub prompt (as earlier).

  3. Select your image.

  4. Highlight the line that begins kernel and press 'e' to edit

  5. Go to the very end of the line, change the ro to rw and add init=/bin/bash

press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

  1. Type in passwd username

  2. Set your password.

  3. Type in reboot

If this doesn't work I am out of suggestions.

Correction, my only other suggestion would be a clean install, but this should work.

RCF
  • 2,127