LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2022, 06:03 AM   #1
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Rep: Reputation: 1
(Solved) Locked out of OS


Please help urgent
I'm locked out of my Linux mint OS. It says invalid password even though its written down and been correct for months.

If I go to single user recovery mode, I can get root prompt and change the password for root or the user in question. But then it still says invalid even after I just changed it to something simple to type.

I can get root or user terminal prompt in single grub recovery mode

Last edited by Pleasemercy; 04-18-2022 at 01:57 AM. Reason: Solved
 
Old 04-13-2022, 07:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,893

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
I guess it is a simple caps-lock, keyboard layout or similar issue.
 
1 members found this post helpful.
Old 04-13-2022, 08:19 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,650

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Pleasemercy View Post
Please help urgent
I'm locked out of my Linux mint OS. It says invalid password even though its written down and been correct for months. If I go to single user recovery mode, I can get root prompt and change the password for root or the user in question. But then it still says invalid even after I just changed it to something simple to type. I can get root or user terminal prompt in single grub recovery mode
Agreed with pan64...if you changed the password, then something else is at play. And nothing here is 'urgent'..we volunteer our time.
 
Old 04-13-2022, 08:29 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Quote:
But then it still says invalid even after I just changed it to something simple to type.
some distros will not allow simple passwords, or very short passwords.....and so the original password is still in force.

Try changing root password to at least 8 characters with at least one upper case letter and at least one number and a "squiggle" like ! @ # $ (etc)

https://linuxmint-installation-guide...t/install.html
 
Old 04-13-2022, 08:52 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,724

Rep: Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918
Welcome to LinuxQuestions.

Is your filesystem full? If so you will not be able to login as a regular user.
 
2 members found this post helpful.
Old 04-13-2022, 06:32 PM   #6
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.

Is your filesystem full? If so you will not be able to login as a regular user.
Filesystem is not full
 
Old 04-13-2022, 06:35 PM   #7
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by aus9 View Post
some distros will not allow simple passwords, or very short passwords.....and so the original password is still in force.

Try changing root password to at least 8 characters with at least one upper case letter and at least one number and a "squiggle" like ! @ # $ (etc)

https://linuxmint-installation-guide...t/install.html
Tried a complex password. It said password changed in terminal but...

Now at mint login its just reprompting for password even if correct. (No longer saying "invalid password", unless it actually is wrong.)

Like someone hitting lock button repeatedly
 
Old 04-13-2022, 06:36 PM   #8
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by pan64 View Post
I guess it is a simple caps-lock, keyboard layout or similar issue.
Thanks for reply. Caps lock off. 2 keyboards tried
 
Old 04-13-2022, 07:41 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,724

Rep: Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918
Quote:
Originally Posted by Pleasemercy View Post
Filesystem is not full
Do you have more then one partition/filesystem not including swap? Are they all less then 95% full?
 
Old 04-13-2022, 08:13 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,332
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
I've been lucky never to have to do this, but this article might help.
 
Old 04-13-2022, 09:06 PM   #11
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
why not use a live usb to copy any data off your storage device, wipe partitions using gparted and start a clean install?
 
Old 04-13-2022, 09:31 PM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by aus9 View Post
why not use a live usb to copy any data off your storage device, wipe partitions using gparted and start a clean install?
This may be the best way forward. The problem smells to me like a corrupted authorization system.
 
Old 04-13-2022, 10:42 PM   #13
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Original Poster
Rep: Reputation: 1
Ok thank you to everyone who replied... I believe this has been fixed.
We are in!!!!! I am able to get into GUI OS now.

I think the issue was an infinite login loop. This was the command to fix it...

Sudo chown user:user .xAuthority

I am thrilled to be back with my files/OS. However confused and nervous how this happened. And what can be done to prevent it
 
1 members found this post helpful.
Old 04-13-2022, 11:10 PM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,893

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
great job! I think it happened because you used your gui as root (= started as user, switched to root in a terminal and started some app, and that finally changed the permissions on that file - and probably on others too).
That is one reason to avoid it.
From the other hand you might want to mark the thread as solved.
 
1 members found this post helpful.
Old 04-14-2022, 12:08 AM   #15
Pleasemercy
LQ Newbie
 
Registered: Apr 2022
Posts: 7

Original Poster
Rep: Reputation: 1
Solved

Last edited by Pleasemercy; 04-18-2022 at 01:56 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locked out of X VioLaToR Linux - Newbie 15 11-12-2002 04:36 AM
locked out of mysql database adcripps Linux - General 3 09-06-2002 01:47 PM
cd locked out on floppy boot! Help boot menu rooman Linux - General 5 08-07-2002 02:56 PM
HELP!! I just locked myself out of MySQL!! What an idiot -----------> FunkFlex Linux - Newbie 0 01-27-2002 01:28 PM
Passwd files corrupt - I am locked out. Need Help!!! cloy Linux - Newbie 4 02-16-2001 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration