[Ilugc] Re: how to recover root password

  • From: smal@xxxxxxxxxxx (Mahalingam Subramaniam)
  • Date: Fri Oct 26 15:22:17 2007

Dear Mr.Srivastava
i wish to convey my gratitude to you as I was able to resolve the issue with a 
LiveCD by Linux rescue mode. 
sincere thanks
s.mahalingam
S.Mahalingam
Technical Officer
Bioinformatics Centre
Centre for Cellular and Molecular Biology
Habsiguda, Uppal Road, Hyderabad 500 007
Ph:+91-40-27192773, 27192774
+91-40-27160222 - 41 (20 Lines)
Ext: 2773, 2774
Fax: :+91-40-27160591, 27160311
E-mail:
smal@xxxxxxxxxxx
smal8@xxxxxxxxx
http://www.ccmb.res.in


    
        
            
-- Original Message --
From: Manoj Srivastava <srivasta@xxxxxxxxxx>
To: ilugc@xxxxxxxxxxxxx
Date: Thu, 25 Oct 2007 10:52:21 -0500
Subject: [Ilugc] Re: how to recover root password
Hi,
I have been asked to provide details. Ok, here goes:
a) try booting into single user mode. On my machine, it seems to still
ask for the root password, so that solution, proposed by others, does
not work for me. However, since it works for them, you might get
lucky. 
b) As an ordinary user, run dh, look for where root is mounted. In my
case, it is /dev/sdb2
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb2 16126420 688952 14618156 5% /
c) Boot into a live CD (Knoppix, morphix, Ubuntu, whatever)
d) Get a root shell (depends on your live cd; (knoppix has a menu on the
bottom left that allows you to create a terminal window logged in as
root) 
e) Check to see if your live cd has helpfully mounted your root
partition for you, read-only
# mount
/dev/sdb2 on / type ext3 (ro,noatime,errors=remount-ro)
f) Mount your old root partition under /mnt. If it is already mounted
for you, mount it read-write.
mount /dev/sdb2 /mnt
or 
mount -o remount,rw /mnt/sdb2 (or wherever knoppix mounted things
read only)
g) Go edit /mnt/etc/shadow
manoj
-- 
The best diplomat I know is a fully activated phaser bank. Scotty

1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message. 
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

        
    

Other related posts: