Ubuntu asking for password again and again

35.2k Views Asked by At

Ubuntu asking for password again and again I am also having the same problem . When I enter my password while booting up, it shows screen with system loadings for a split second and takes me back to password entry screen

5

There are 5 best solutions below

2
On

When the password entry screen appears on the display manager screen press Ctrl + Alt + F1. After that, you will get to the console. There enter login and then password.

sudo chmod -R u+w /home/user
cd /home/user
sudo rm -f .Xauthority .ICEauthority

go through live USB, when you start clicked to restore the system - it also helps

0
On

I had the same problem on Ubuntu 16.04LTS 64bit. My nvidia driver was the reason of it. I dont't know the details. However removing nvidia-340 package fixed the trouble (apt-get remove nvidia-340).

0
On

I have Ubuntu 19.10 and changing the PATH variable in /etc/environment caused asking the password again and again when I wanted to restart my machine. I used another environment variable in my PATH variable and Ubuntu didn't like it.

So as Arthur wrote I pressed Ctrl + F2 when it asked the password, logged in, realized the problem with echo $PATH, edited the PATH variable with nano /etc/environment, replaced the other variable in the PATH with its value, restarted my machine, and it works now.

2
On

I faced the same issue on my laptop and solved it by following below steps:

  1. Press CTRLAltF1 and It will open the console.
  2. Enter your username and press Enter.
  3. Enter your username password and press Enter.
  4. Run command: mv .Xauthority .Xauthority.bak
  5. Run command: exit
  6. Press CTRLAltF7 for graphical mode.
  7. Try to login by entering your password.
0
On

Ctrl + Alt + F1 did not work in my case of Ubuntu 18.04 in VirtualBox, but Ctrl + F2 did take me to the command line.

My issues did not end there however, I simply could not issue any command (resulted in error "Command ... not included in the PATH environment variable") until export PATH=/usr/bin:/bin. But then, to my dismay, none of the procedures listed here helped. What worked is the answer by Prometheus and Chaos at https://askubuntu.com/questions/249363/my-ubuntu-system-is-asking-login-again-and-again-when-i-even-entered-the-correct