So I have a Debian distro at home (considering getting ubuntu), and I can't login. When I use the correct password is does this thing where it makes it look like it's going to login, and then it redirects to the login screen, but when I use an incorrect password it says "authentication failure". Does anyone know what could be causing this?
.bashrc contains an error, and makes the shell exit?
If thats the case, use
ctr-alt-F1 to enter the shell. use the command
su - root to enter a root session, and then use
vi to edit the file that is broken.
Had exactly the issue as described. After switching to a console (
Ctrl+Alt+F6), it appeared that the root folder was completely full (use
df ). A simple
sudo apt-get clean did the trick. After confirmation that the drive has space available, go back to login screen using
I also have this problem from time to time, but the solutions here don't work. I found the following somewhere, but can't find it again, so here it is:
- Switch to a console with
- Log in using the console (you are asked for your username and password right away);
sudo chmod 1777 /tmpand the password for
- Go back with
Ctrl+Alt+F7and proceed normally.
Those are the standard permissions of
/tmp and I have absolutely no clue why they should be wrong at log in. The only pattern I think I found is that I need to have tired to log in with a wrong password before using the correct one stops working.
Alternative cause and solution:
In my case, there was a syntax error in /etc/X11/xorg.conf. Judging by google results, this is a lot more rare than file permission problems. I found this out through attempting
startx from the terminal (Ctrl+Alt+F2), which pointed me to a log file where it noted the syntax error.