Linux - Security This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-08-2007, 03:55 PM
|
#1
|
LQ Newbie
Registered: Nov 2006
Posts: 8
Rep:
|
I have lost my root password.
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?
|
|
|
07-08-2007, 04:20 PM
|
#3
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407
Rep:
|
You could try using the search button on this page, or perhaps looking at the list of similar threads, below.
|
|
|
07-09-2007, 01:45 AM
|
#4
|
Member
Registered: Apr 2003
Location: Kolkata
Posts: 215
Rep:
|
Why dont to go linux rescue and change the password
|
|
|
07-12-2007, 11:27 PM
|
#5
|
Member
Registered: Jul 2007
Location: Porto Alegre, Brazil
Distribution: Slackware
Posts: 44
Rep:
|
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.
|
|
|
07-13-2007, 01:10 AM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|