Wednesday, May 25, 2022

[SOLVED] Fixing user screen login loop

Issue

I’m trying to fix a user login screen loop on Ubuntu 18.04 LTS.

I modified the /etc/profile, ~/.bashrc, and ~/.bash_profile files and added a jdk_home.sh file in the /etc/profile.d directory in order to change the $JAVA_HOME variable. After logging out, I encountered the login screen loop the next time I tried to login.

I can successfully modify my file system as root using recovery boot. I’m not sure which files I have to edit.

I overwrote the /etc/profile and ~/.bashrc files with the ones in /usr/share/base-files, and I deleted ~/.bash_profile and /etc/profile.d/jdk_home.sh file since they were only a few lines, I created them, and I wanted to see whether deleting them would fix the issue.

I also created a new user acct from terminal, and I got the same issue logging into the new acct, so I feel as though there issue is in my /etc directory.

I’m honestly not sure how to go about solving this issue. Any suggestions or resources about the /etc files would be greatly appreciated. Thank you


Solution

The issue was one of the bash configuration files. I reinstalled the Ubuntu and transfered my files.



Answered By - Philosopher-Programmer
Answer Checked By - Terry (WPSolving Volunteer)