[O/S] Debian won't log me in

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
NotWorking
Posts: 4
Joined: 2024-07-30 00:49

[O/S] Debian won't log me in

#1 Post by NotWorking »

Debian12

I usually log into Debian at the Gnome login screen by clicking on my username and then typing my password and it gives me my Gnome desktop.

However, today, after I enter my password and press `enter`, it loops back to the Gnome login screen.

I have repeated this process several times.

I have checked the `show password` widget to see that I am entering my password correctly.

Any suggestions?

~NotWorking

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5423
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 18 times
Been thanked: 81 times

Re: [O/S] Debian won't log me in

#2 Post by dilberts_left_nut »

Gor any diskspace left?
AdrianTM wrote:There's no hacker in my grandma...

User avatar
silensys
Posts: 16
Joined: 2023-07-18 19:21
Has thanked: 2 times
Been thanked: 6 times

Re: [O/S] Debian won't log me in

#3 Post by silensys »

If you have a root account enabled you might be in luck:
Go into a TTY while you're at the login prompt by pressing

Code: Select all

CTRL+ALT+F2 or F3
Input root username, and root password to login into the TTY.

enter this command to verify that your user account has a password set:

Code: Select all

passwd -S yourUsername
if it has an "L" next to your username its locked, if it has an "S" then its all ok.
in case of "L" enter this to unlock:

Code: Select all

usermod -U yourUsername
If the above is not the case, then enter this command to verify if your user account got blocked by system due to too many failed password attempts:

Code: Select all

faillock --user yourUsername

If it has multiple rows with your username and the "Valid" column has "V" then your account is locked due to too many failed login attempts...

Unlock it via:

Code: Select all

faillock --user yourUsername --reset
When you're done press CTRL+D to safely log out / detach root from the TTY2 and go back to GUI Login screen via CTRL+ALT+F7 or F6 (cant test, but if I recall correctly Debian has the GUI login manager on F7 by default) and retry login.

If my solution helped, please don't forget to push the "Thumbs up" button, near at the left of my profile pic, and mark the topic as solved.

NotWorking
Posts: 4
Joined: 2024-07-30 00:49

Re: [O/S] Debian won't log me in

#4 Post by NotWorking »

dilberts_left_nut wrote: 2024-07-30 06:47 Gor any diskspace left?
Thanks for your reply.

Plenty diskspace.

NotWorking
Posts: 4
Joined: 2024-07-30 00:49

Re: [O/S] Debian won't log me in

#5 Post by NotWorking »

silensys wrote: 2024-07-30 18:58 If you have a root account enabled you might be in luck:
Go into a TTY while you're at the login prompt by pressing

Code: Select all

CTRL+ALT+F2 or F3
Input root username, and root password to login into the TTY.

enter this command to verify that your user account has a password set:

Code: Select all

passwd -S yourUsername
if it has an "L" next to your username its locked, if it has an "S" then its all ok.
in case of "L" enter this to unlock:

Code: Select all

usermod -U yourUsername
If the above is not the case, then enter this command to verify if your user account got blocked by system due to too many failed password attempts:

Code: Select all

faillock --user yourUsername

If it has multiple rows with your username and the "Valid" column has "V" then your account is locked due to too many failed login attempts...

Unlock it via:

Code: Select all

faillock --user yourUsername --reset
When you're done press CTRL+D to safely log out / detach root from the TTY2 and go back to GUI Login screen via CTRL+ALT+F7 or F6 (cant test, but if I recall correctly Debian has the GUI login manager on F7 by default) and retry login.

If my solution helped, please don't forget to push the "Thumbs up" button, near at the left of my profile pic, and mark the topic as solved.
Thank you for taking the time to reply.

Code: Select all

$ passwd -S myusername
myusername P 2024-06-24 0 99999 7 -1
The `manpage` indicated "P" meant my password was okay.

I have found that if I change the "type" of login to `Xorg` at the Gnome login screen (from a "Settings" pulldown list in the lower right corner), I can now login to my machine.

But if I change it back to the non-Xorg setting, it keeps returning me to the Gnome login screen.

Regards.

NotWorking
Posts: 4
Joined: 2024-07-30 00:49

Re: [O/S] Debian won't log me in

#6 Post by NotWorking »

Well, I tried logging into the non-Xorg desktop today, and it worked.

Hopefully, this problem was fixed/rectified in the last update (I did an `apt upgrade` yesterday).

Regards.

Post Reply