Jump to content

Login loop

Go to solution Solved by Ralphred,
57 minutes ago, floatint_ said:
exit 0

Is 'killing' your login terminal. Boot to recovery mode (or use a live USB) and move it out of profile.d, and be sure to test login scripts using ~/.bash_profile so you can still log in as root to fix them in future.

I was trying to fix an issue I had with an application. I found that if I ran this, in a .sh file:

nautilus . &
killall nautilus
exit 0

it would fix my error. So I then put the .sh file in /etc/profile.d so it would run when I log in. Now when I log in, my screen turns black for a second, then I am back on my login screen. I tried logging in with the terminal, but same issue. A welcoming message appears for a split second, then the terminal clears and I am back on the login prompt. Have I messed up so bad that I need to reinstall my OS, or is this fixable? I am completely new to linux so I was oblivious to what would happen. 

Link to comment
https://linustechtips.com/topic/1447005-login-loop/
Share on other sites

Link to post
Share on other sites

57 minutes ago, floatint_ said:
exit 0

Is 'killing' your login terminal. Boot to recovery mode (or use a live USB) and move it out of profile.d, and be sure to test login scripts using ~/.bash_profile so you can still log in as root to fix them in future.

Link to comment
https://linustechtips.com/topic/1447005-login-loop/#findComment-15506272
Share on other sites

Link to post
Share on other sites

49 minutes ago, Ralphred said:

Is 'killing' your login terminal. Boot to recovery mode (or use a live USB) and move it out of profile.d, and be sure to test login scripts using ~/.bash_profile so you can still log in as root to fix them in future.

Oh, thank you. I will keep this in mind if this ever happens again.

Link to comment
https://linustechtips.com/topic/1447005-login-loop/#findComment-15506307
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×