Re: Reset root password
From: Mr. Boy (mrboy77_at_gmail.com)
Date: 05/19/05
- Next message: Mr. Boy: "Re: read access on passwd file"
- Previous message: Mr. Boy: "Re: IPTABLES CONFIGURATION? HELP"
- In reply to: partze: "Reset root password"
- Next in thread: Unruh: "Re: Reset root password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 19 May 2005 14:17:11 -0700
dude the fastest way to accomplish this is to boot your box with a
rescue cd, mount the root partition in a temporary folder;
after the boot process finishes, do this:
( "root@slax: ~#" this represents a example shell prompt of a rescue cd
after booted)
root@slax: ~# fdisk -l
this will show the partition table found in your discs (if they were
detected at boottime)
root@slax: ~# mkdir /mnt/linux
After creating the mount point you should mount your root partition
(hopefully you know which one is your root partition)
root@slax: ~# mount /dev/*** /mnt/linux -t ext3 -o rw
the *** are just and example, you should put here the real device and
real partition shown by fdisk, example (/dev/hda2 [second partition,
primary-master] IDE disc)
root@slax: ~# cd /mnt/linux/etc
here, you should edit your passwd file, the first line should show you
the login information of root user UID 0 something like this:
root:x:0:0::/root:/bin/bash
well, remove the x between root: and :0 and save the file, reboot .....
ta-da!! login with root, then type the hardest password ever:
press <ENTER>
cheers! you have cracked your own root pass!
- Next message: Mr. Boy: "Re: read access on passwd file"
- Previous message: Mr. Boy: "Re: IPTABLES CONFIGURATION? HELP"
- In reply to: partze: "Reset root password"
- Next in thread: Unruh: "Re: Reset root password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|