Forgotten Username & Password

Status
Not open for further replies.

Manshahia

Resident Fanatic
Guys i hav forgotten Suse 10.2's Username and password.

Anyway to sort it out, without installing it again for 1.5 hours???
 

mehulved

18 Till I Die............
Then how do you boot?
Renistall grub/lilo, whichever you prefer.
One way is boot from a live cd, give the following command in the terminal
Code:
sudo mkdir /mnt/linux
sudo mount -t ext3 /dev/hda1 /mnt/linux
sudo chroot /mnt/linux /bin/bash
grub-install /dev/hda1
sudo passwd <username>
(now you will be prompted to type your password, twice)
In the above replace /dev/hda1 with whatever your / partition is and <username> with the username. And if you are using filesystem other than ext3 for your / partition, then even change ext3 to that.
 

mehulved

18 Till I Die............
It totally works. But, of course someone needs a physical access to your system for this. To protect this, you have grub password and BIOS password.
Still, someone can yank off your hard drive and run away.
This is what I have learnt from others.
 

mediator

Technomancer
Actually! Every system is hackable starting from BIOS. As home users we don't need to think abt it that much (ofcors we need to update the system). Otherwise security is very important.

So u can prevent all that by giving grub its own password!
*www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=2
 

mediator

Technomancer
^^ Its a run command or interactive shell with special root directory

Type "man chroot" on ur *nix box to find out more !
 
OP
Manshahia

Manshahia

Resident Fanatic
TYF said:
Code:
sudo mkdir /mnt/linux
sudo mount -t ext3 /dev/hda1 /mnt/linux
sudo chroot /mnt/linux /bin/bash
grub-install /dev/hda1
sudo passwd <username>
(now you will be prompted to type your password, twice)

The First Line went fine.
In the second line Ubuntu said this.

Code:
Usage   :  Mount -v     : Print Version
              Mount -h     : print this help
              Mount         : List Mounted Filesystem
              Mount -l      : Idem, Including volume labels

So far the informational Part. Next the Mounting.
The command is 'mount[-t fstype] something somewhere
Details found in /etc/fstab may be Ommited

Mount -a[-t|-o].... Mount all file systems from /etc/fstab
mount device....
mount dir....
mount -t type dev dir : Ordinary Mount command.
Note that one does not really mount a device one mounts a filesystem(of a given type) found on the device.
.............................


TYF said:
In the above replace /dev/hda1 with whatever your / partition is
i found that the drive name is hdb9. Is it correct??

Now where is the problem??
 
OP
Manshahia

Manshahia

Resident Fanatic
So, wat sud i do now??
Pop the CD??
On terminal write fdisk -l??
How wud i b saving the output??
Coz i cant access HDD in UBUNTU Live.
__________
?????
 
Last edited:
Status
Not open for further replies.
Top Bottom