Fedora login loop

3

1

I just rebooted my system after a week and now whenever i boot it up i am directed to the same login screen however i can no longer log in. I didn't have any password on my account so used to hit enter to login but now it just reloads the same login screen again. I cannot login with any other user because i don't have any other and login with root isn't allows. Moreover whenever i try to log in through terminal with root, it shows the last login time for an instant and then restart the session and asks me for my password again. Any help would be appreciated.

pranay

Posted 2016-01-11T16:44:44.517

Reputation: 51

What Fedora version is this? Do you have a Rescue option in the initial boot menu? – mattdm – 2016-01-13T03:19:28.680

rescue option boots into identical OS (same bug) so do all the other 3 fedora instances.I am running fedora 23 workstation edition, kernel 4.2.8-300.fc23.x84_64 running GNOME. live cd rescue doesnt work because it asks for a password for root in rescue mode which doesnt work. Moreover single user mode doesnt work and neither does manually mounting the partition in live cd – pranay – 2016-01-13T11:03:58.363

see here:https://ask.fedoraproject.org/en/question/81179/login-loop-cannot-log-in/?comment=81247#comment-81247 for more steps i have tried

– pranay – 2016-01-13T11:10:09.053

How did you get into a state with no password on the account? – mattdm – 2016-12-13T17:16:41.423

@mattdm I think it happened when I was working in Su mode and had an unexpected shutdown, so the permissions did not revert to my account. This did happen to me again after a kernel panic. – pranay – 2016-12-13T17:20:47.850

Answers

2

If anyone else has had this problem, this is how I fixed mine.

  1. Choose login with another user and login as root (logging in through the shell didn't work for me).
  2. Open terminal and give access to your user account for the home directory using chown username /home/username
  3. Try logging in again. If it still fails, give you account access to the /root directory and any other directory that your account might have been using.
  4. If you can't login with root in the another user option then try using sudo to run the command in the shell with your account.
  5. A final thing you could do is connect your hard drive to another computer, copy the /home partition there and then delete it. After rebooting now you should be able to login as root and make a new /home partition.

I finally fixed this problem when it happened to me a second time (4 months later). It seems the problem was an unscheduled shutdown while using sudo or logged in as root on the terminal. Access problems could also have something to do with why I couldn't login in the shell.

Hope this helps

pranay

Posted 2016-01-11T16:44:44.517

Reputation: 51

This answer seems to revolve around being able to log in as root somehow, and running the chown command. I am on F24 Workstation, and am currently experiencing this problem. I may have had an unexpected shutdown. The permissions on the user account's home directory seem to be 700, and owned by that user. I have run the recursive command as per https://ask.fedoraproject.org/en/question/53638/f19-stuck-in-login-loop/?answer=53683#post-id-53683, restarted, and still looping back to the log in screen. Am I missing anything? The password works, and I'm in SSH, just the looping problem..

– Pysis – 2016-12-01T02:56:11.053

@Pysis If you can login as another user, try moving the home directory elsewhere and deleting that user. Then, make another one and restore your home data. Otherwise, what I did was not a restart but a logout when I change the permissions. Also try using an older fedora image. If your problem persists make another question somewhere with your particular question and logs. – pranay – 2016-12-04T04:59:16.330

1

This is not a fix, and it is only a temporary solution and it seems so un-legitimate that it might not work for everyone (beside me).

I've rebooted a few times like this and it works. One day i was raging at the loggind so i just started to click everywhere with my mouse and got in.

So, Select yourself in the menu, enter your password and press enter. The micro second you've press enter, start clicking anywhere with your mouse.

Louis Loudog Trottier

Posted 2016-01-11T16:44:44.517

Reputation: 141

Actualy i figured you need to click in the gray in the fadding 'window' frame. Aka, from the moment it start to fadeout, and the moment it finnises fading. Sometimes takes me a few tries but always end up logging in before getting pissed. – Louis Loudog Trottier – 2017-03-08T05:50:53.990

0

I had the same problem.

I disabled Wayland completely in '/etc/gdm/custom.conf', By Uncommenting the line # WaylandEnable=false

Reboot

And work for me.

user703480

Posted 2016-01-11T16:44:44.517

Reputation: 11

Does F24 even have wayland? – Journeyman Geek – 2017-03-03T05:35:46.940

Sorry, I have Fedora 25, Fedora 24 not have wayland as default display driver – user703480 – 2017-03-04T06:58:33.470

This worked for me with F31... tried several things, this is a fresh install. After just one update couldn't login :/ frustrating! – David McCorrie – 2020-02-01T11:03:23.163

0

Once you start typing your password, you can see a settings gear pop up next to the Login button. If you click it, you can choose what desktop to use. The standard gnome won't work on mine but the Gnome on Xorg option works fine. It may be a display driver issue.

Nate

Posted 2016-01-11T16:44:44.517

Reputation: 1

Welcome to Superuser. You should take the tour at https://superuser.com/Tour to get the most out of this site.

– SDsolar – 2017-06-16T00:54:53.240

0

I had the same problem and it turns out my .bashrc was the culprit. To fix it, from the login screen I hit Ctrl+Alt+F2 to get to terminal, then vi ~/.bashrc and comment out anything you think could be causing a problem. For me it was a few lines that had tmux start automatically with a new terminal window. Then type reboot to restart your computer and get back to the login screen.

Hope this helps anyone who had the same problem as me.

MountainDrew

Posted 2016-01-11T16:44:44.517

Reputation: 101

0

Same problem here. Installed Fedora 27 over Fedora 28. Moved /home partition to old partition where all mys users were. At firt login,ok.Then logout and try to login back=> loop.

giuseppe

Posted 2016-01-11T16:44:44.517

Reputation: 101

-1

[CTRL] [Alt] F2

move /user_director /user_directory_OLD [CTRL] [ALT] F1

Login

Copy any need files/folder to new home dir.

*** having trouble with this, then do it as root and change ownership to the user.

user1056003

Posted 2016-01-11T16:44:44.517

Reputation: 1