LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-22-2023, 10:07 PM   #1
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Rep: Reputation: 0
cannot open access to console,the root account is locked


someone who can help.I get this message

cannot open access to console,the root account is locked
 
Old 07-23-2023, 12:35 AM   #2
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
A web search of that error returns numerous scenarios which may help you narrow it down, depending on when it occurs and which distro.

That will give you ideas for additional keywords, to help you isolate the problem.

Please do let us know what it turns out to be, and what additional info/clues helped you solve it.
 
Old 07-23-2023, 05:12 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Which release of Fedora are you using? What did you do to get that message? Recent releases lock the account by default and use sudo. See the link below.

https://lwn.net/Articles/879272/
 
Old 07-23-2023, 05:29 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
This was such a monumental screw-up by the Fedora devs, they should have quit.
 
1 members found this post helpful.
Old 07-23-2023, 07:46 AM   #5
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Which release of Fedora are you using? What did you do to get that message? Recent releases lock the account by default and use sudo. See the link below.

https://lwn.net/Articles/879272/
fedora 37 I have, the problem was probably caused by a tool that was looking for vulnerabilities and in the terminal I was giving automated commands that I didn't know exactly what they were. the strange thing is that in the error it writes I don't see that I can type a command.
 
Old 07-23-2023, 08:22 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Can you use the console as yourself? If so, you can carry out diagnostics and perhaps fix things using sudo.

If not, you will have to boot from a rescue/installation image that will give you root access again.
 
Old 07-23-2023, 08:51 AM   #7
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
Can you use the console as yourself? If so, you can carry out diagnostics and perhaps fix things using sudo.

If not, you will have to boot from a rescue/installation image that will give you root access again.
How can I do this?What orders can I give, brother?
 
Old 07-23-2023, 08:59 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
You haven't answered my question. Can you use the console as yourself? Can you log in as yourself and give simple commands like ls?
 
Old 07-23-2023, 10:37 AM   #9
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
You haven't answered my question. Can you use the console as yourself? Can you log in as yourself and give simple commands like ls?
but I don't see the ability to type a command.It says press enter to continue and press enter And it rewrites it every time you press it.Meanwhile after restarting windows because I'm running on my dualboot system, I get a black screen that says grub minimal bash-like and doesn't get into any mode
 
Old 07-23-2023, 10:48 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
That "press enter to continue" usually occurs during boot when the kernel has loaded but can't find its initial root device. So you are not actually reaching a console at all.

In the second case you describe, you haven't even got as far as loading the kernel. You are stuck in the GRUB bootloader. The fact that the prompt says "grub" and not "grub rescue" shows that the bootloader has at least loaded its shell module and can receive commands, but can't find the kernel image that it needs to load next. I'm no expert on GRUB, but most of the other people here use it and they can tell you how to specify your kernel and initial root device.
 
Old 07-24-2023, 12:31 AM   #11
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
That "press enter to continue" usually occurs during boot when the kernel has loaded but can't find its initial root device. So you are not actually reaching a console at all.

In the second case you describe, you haven't even got as far as loading the kernel. You are stuck in the GRUB bootloader. The fact that the prompt says "grub" and not "grub rescue" shows that the bootloader has at least loaded its shell module and can receive commands, but can't find the kernel image that it needs to load next. I'm no expert on GRUB, but most of the other people here use it and they can tell you how to specify your kernel and initial root device.
and now what should i do for the first case?
 
Old 07-24-2023, 03:56 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Quote:
Originally Posted by slayer21 View Post
and now what should i do for the first case?
Check the kernel messages that occur directly before that warning and post them here. Hopefully they should tell us what went wrong.
 
Old 07-24-2023, 05:34 AM   #13
slayer21
LQ Newbie
 
Registered: Jul 2023
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
Check the kernel messages that occur directly before that warning and post them here. Hopefully they should tell us what went wrong.
Thank you very much for helping me, you are a good man and life will give you all the good back.As for the case of the problem what command to write since as you can see from this photo it says press enter to continue and I can not write something.When I press enter I get the same message again

https://forums.fedoraforum.org/attac...4&d=1690081622
 
Old 07-24-2023, 06:01 AM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
I am not a man, good or otherwise! As you would have seen if you had bothered to read my signature. What you need to do is to look at the lines immediately above this message and reproduce them here. Otherwise no one will know why the system wants you to abort the boot.

No Linux problem can ever be solved if insufficient information is given. If you want people here to help you, you must help us by providing as much information as possible.
 
Old 07-24-2023, 06:49 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Maybe this will help.
https://docs.fedoraproject.org/en-US...ccount-locked/
 
  


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
Cannot open access to console, the root account is locked in emergency mode LEON71 Linux - Desktop 2 03-16-2021 08:21 AM
cannot open access to console the root account is locked (parrot sec is) AIM5657 Linux - Newbie 4 09-26-2018 05:37 PM
root account can access the internet, the other account can only access google omizt Linux - Newbie 101 02-13-2012 02:22 PM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:36 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