LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-30-2012, 08:28 PM   #1
deros3
LQ Newbie
 
Registered: May 2012
Location: Nashville, TN
Posts: 1

Rep: Reputation: Disabled
Bloody Hell...Compounded problems trying to reset password.


Okay...So for the record, I am a newbie of sorts. I have been using various Linux flavors for years, but I am not an admin. Here is my situation.
  • My Administrator quit, and changed his password to a random set of keystrokes that he didn't record, because he believed my user had admin rights. But, no. I can't even sudo
  • I tried booting to the command prompt via the recovery path through the grub menu, but I get a "Enter root password for Maintenance" ...that won't work.
  • So, I attempted to access through the grub menu by booting to "init=/bin/bash" and Single mode by editing the kernel boot process - but I get a "No-Floppy devices detected"
  • To overcome this issue, I attempted to "Blacklist" floppy but, you have to be an admin to do so...(BTW, the BIOS doesn't even include floppy)
Yikes! What do I do? I hope that someone out there can help me overcome this. Thanks in advance!
 
Old 05-30-2012, 09:27 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
attempting to get into runlevel 1 (single user) by editing the grub menu will not give any different outcome than just doing "init 1". This said, I can't see how a floppy came into the picture----for curiousity, you could show us the exact grub edits----but it won't help get you into the system.

Send me e-mail or a PM, and I'll tell you how to get into the system.

Side question:
Does anyone know where a system is set to require / not require a password for runlevel 1?
 
Old 05-30-2012, 10:30 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany
Does anyone know where a system is set to require / not require a password for runlevel 1?
/etc/inittab -- See the inittab(5) manpages (and search for 'sulogin' in there).
 
Old 05-30-2012, 10:40 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
Just boot from a live-CD, mount your system partition and chroot into the system. Now you can set a new password for root.
For example, assuming your system partition is /dev/sda1:
Code:
mount /dev/sda1 /mnt
chroot /mnt /bin/bash
passwd root
exit
umount /mnt
Then reboot and you should be fine.
 
  


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
i2P - anonymity for the masses; bloody hell girls! lugoteehalt Debian 10 12-25-2011 04:08 PM
[SOLVED] Hard Disk problems compounded by MBR Draylath Debian 15 06-14-2010 04:17 PM
Bloody Hell !! (this is good) saywot Fedora 3 06-07-2006 09:19 AM
password reset problems with ssh/ldap cary_anderson Red Hat 0 01-24-2006 11:40 AM
Bloody Hell rkane General 4 07-21-2003 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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