Login loop
Login loop
I was attempting to resolve a problem with an app. I discovered that executing it in a .sh script—specifically nautilus . & killall nautilus exit 0—resolved my issue. I saved the script to /etc/profile.d so it runs on login. Now, upon logging in, my screen briefly goes black before returning to the login screen. When I use the terminal, the same behavior occurs: a brief welcome message appears, then the terminal clears and I’m back at the login prompt. Have I made a critical mistake that requires reinstalling the OS, or is this fixable? As a complete newcomer to Linux, I wasn’t aware of these potential consequences.
End your login session by terminating the process. Restart into recovery mode (or employ a live USB) and relocate it outside profile.d. Verify login scripts via ~/.bash_profile to ensure continued root access for troubleshooting.