[SOLVED] Yet another need to access a forgotten root password
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Yet another need to access a forgotten root password
Okay, I have read the other threads (nearly a dozen or so) and nothing of use has come from it. I have tried:
booting into single user mode (using '1' and 'single' in my bootloader edits) and it still ends up kicking me to the 'myBox login:' prompt
booting from a live-CD with no luck - seems my CD drive is hosed, or the system just won't boot the CD
This is a system I set up, literally, years ago, with no need to touch it. It was originally set up as a file server, running SAMBA. I am wanting to add CUPS to it, and possibly a web server if it will handle the load.
Currently, it is running Debian 4.0 without a GUI.
My next step, if I can't get into the root account, is to install a new OS (and try to salvage the file shares that exist). I just would rather keep the install that I have, but I need to hack/crack or change my root password.
Can you edit /etc/sudoers in the mode you've gotten to by the init=/bin/bash mode? Perhaps you could create a new user and give that new user full sudo access. Then log in to that user and do a sudo passwd to change the root password.
But first, check that /var is mounted with write permission for "root." The "lock" may be being reported as busy because /var/lock is not writable.
Last edited by PTrenholme; 08-13-2010 at 01:02 PM.
Hmm... For a system with physical access that would be a pretty easy way to... never mind . I think remounting the system as rw as SalmonEater has said will do the trick. Please don't forget to mark this as solved when you already find it correct.