LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 07-06-2003, 04:16 PM   #1
Reaps^
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
resetting root password.


hi

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 ?

Thanks
Reaps
 
Old 07-06-2003, 04:46 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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.
 
  


Reply


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


All times are GMT -5. The time now is 09:17 AM.

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