Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-06-2003, 03:16 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
resetting root password.


i have grub boot loader

i dont have my root password anymore.

i can login as a guest user. 500 access.

how can i find the password? or reset it..

i have physical access to the machine as its in my room, at the moment. Im in a different house from teh server. are there ways of resetting the root pass from local?
or are there ways from doing it remotely ?

Old 07-06-2003, 03:46 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,567

Rep: Reputation: 164Reputation: 164
If you've got phisical access to the machine, it's not a big problem. There are different methods (depending on the distro):
1) You may have a possibility to pass option to kernel in grub. You should pass 'linux 2'. It will boot to single-user mode, where it logs you as root without a password, so you can use 'passwd' and change it.
2) From installation cd in 'rescue' mode - as in point 1.
3) Edit /etc/shadow (first line is 'root:encryptedpassword:....), delete the password between first two : and then reboot. You should be able to login as root without a password.


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
resetting pop3 password matt1982 Debian 1 08-26-2005 09:38 AM
Resetting Username & Password - HELP Shanahan Fedora 3 05-12-2005 04:50 AM
resetting th root password on rh9 hamza11050 Linux - Software 4 09-30-2004 07:21 PM
Resetting Root password lorddecker Linux - Software 4 06-18-2004 02:48 PM
Resetting MySQL root password b200306 Linux - Software 3 02-08-2004 03:21 PM

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration