Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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 installed Mandriva Linux 2007 quite a while ago, and haven't really used it. Inspired by free time and, resultingly, boredom, I thought I'd give it another go. Unfortunately, I have forgotten my root password. I know it was something really long and complicated. It was a good password.
Is there anything I can do, or should I just reinstall Linux froms scratch?
Boot from a Live CD.
Mount your root partition in /mnt
Edit the file
/mnt/etc/shadow
The first line is something like this:
root:%%%%:13699:0:::::
The text between the first and second colon
is your encrypted root password. Erase it
or copy the encrypted password from another
user.
Reboot, now with a known root pw.
Everybody forgets the easy way. At the boot loader add 1 at the end of the line. This will boot into runlevel 1 which will automatically log into root. Then you can change the password by typing passwd.
LILO:
Type linux 1
GRUB:
1) Use arrow keys to highlight the line for Linux
2) Hit e
3) Select the kernel line and hit e
4) move the cursor to the end of the line and add 1
5) Hit ESC
6) Hit b to boot
This way will only work if you did not password protect your boot loader. Rarely a desktop user will do this because it adds complexity to the setup.
This way is not actually rescue mode because it just another runlevel which you can be change to run anything you want automatically at boot up. Usually runlevel 1 does not run anything except a login process to automatically login root. The rescue mode is run from the installation disc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.