How could normal user obtain root password or change root password
DebianThis forum is for the discussion of Debian Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know it could be done using a Live CD, but I'm uncomfortable with the idea that anyone who can reboot and see the Grub login screen could trivially gain root access. As I said, I have not been able to accomplish it, but if it can be done, on an up-to-date Debian (Etch) system, I want to know.
I just now remembered because I had to do it... But I _knew_ there was a way to get into a Debian box from grub.. Instead of booting with 'single' or '-s' which asks for a password, boot with this:
Code:
init=/bin/bash
I was unable to change my password this time (I have brain farts often) because I could not remember how to remount / as writable... But once its up, just remount the root partition as writable and then run 'passwd' to change the password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.