Table of contents
What is the Login loop
The login loop is a problem where a user is requested to log in repeatedly even after providing the correct login credentials. You might be wondering why this happened. Among other actions, changing the system path variable by accident can result in a login loop
How then do you break out of the login loop?
Fixing the login loop isn't much of a big deal you can break the loop in under 2 mins following the steps below.
1.Press Ctrl + Alt + F3 to open the terminal window.
2.Enter your username.
3.Enter your password.
4.Run the following commands:
echo $PATH
export PATH="/usr/local/sbin/:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin/usr/games:/usr/local/games:/snap/bin"
source ~/.bashrc
export PATH="/usr/local/sbin/:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin/usr/games:/usr/local/games:/snap/bin"
source ~/.profile
sudo nano /etc/environment
- A file opens in the terminal remove all other paths except the first path that is:
export PATH="/usr/local/sbin/:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin/usr/games:/usr/local/games:/snap/bin"
Press Ctrl + X to save the file.
Press enter to confirm.
Press Ctrl + O to exit.
Reboot your system using
sudo reboot
.
After following these steps you should be able to log into your account like you usually do.