LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2011, 11:57 AM   #1
Pinglu
LQ Newbie
 
Registered: Sep 2011
Posts: 17

Rep: Reputation: Disabled
Unable to Access to Single User Mode or Emergency Mode


The original problem is that it shows a repeating Authentication Failed message box when I'm at the Centos Login Screen. I can't even type the username. So I decided to boot to single user mode to do a further investigation. But I tried the ways to boot to the single user mode, even the emergency mode through my google search. For example, go to the Kernel line and add the word "single". I'm sure I tried all the ways(in fact not that many ways available), but still everytime it will go to the GUI login screen and shows that Authentication Failed message box.

Can anyone help me out here? Thank you.
 
Old 10-17-2011, 12:15 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Try this sequence:

- Boot the CentOS LiveCD,
- mount the system root on /mnt,
- chroot to /mnt and
- reset the root password.
- Reboot.
 
Old 10-17-2011, 02:08 PM   #3
Pinglu
LQ Newbie
 
Registered: Sep 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by macemoneta View Post
Try this sequence:

- Boot the CentOS LiveCD,
- mount the system root on /mnt,
- chroot to /mnt and
- reset the root password.
- Reboot.
Thanks for the reply, can I ask you how to mount the system root on /mnt, and if I do so, will anything in the file system be changed, cause I don't want to mess up anything in the system. Thank you.
 
Old 10-17-2011, 02:25 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
You can mount the root on a default CentOS installation and run the above with:
Code:
su -
mount /dev/mapper/*lv_root /mnt
chroot /mnt
passwd root
exit
Yes, the filesystem will be changed to update the password, since you can't otherwise authenticate.

Update: You can update any account password this way. For example:
Code:
passwd someuser

Last edited by macemoneta; 10-17-2011 at 02:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Emergency mode can mount the HDD with FS error but not in rescue or single user-mode kayod_jj Linux - Newbie 3 12-01-2010 08:03 PM
single user mode under vxfs mode enabled. UltraSoul Solaris / OpenSolaris 1 06-27-2009 10:48 PM
How do I enable remote access for single-user mode? wired Linux - Newbie 1 02-27-2006 05:37 PM
Unable to access Konqueror with USB drive plugged in user mode richdux Mandriva 3 03-10-2005 08:27 PM
RH9 - Rescue, single, and emergency mode? blackx Linux - Newbie 3 05-22-2003 03:03 PM


All times are GMT -5. The time now is 01:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration