• Software
  • How To reset Backtrack4 root password without login?

Hi Geeks,
I forgot my password and have no privileged users.Is there anyway to get the default password back?
I followed This tutorial http://bit.ly/ec3jfn But still not working!
Any help?
you have Backtrack installed on a Pc or on a VM ?
you have a grub password ? if so it wont work.

Anyway it works fine on Bt4 but i think offensive security disabled the bug on bt4 r2 ( not sure).
m0ei wroteyou have Backtrack installed on a Pc or on a VM ?
PC
you have a grub password ?
no
What should i do?
If you have a LiveCD, just stick it in, boot into the live distro, and mount your hard disk. Let's say you mounted your disk (/dev/sda1 for example) onto /mnt/mydisk. Then you can simply chroot and run the passwd utility to change the root password.

First: use su to become root.
Then: chroot /mnt/mydisk so that the root of your filesystem becomes /mnt/mydisk
Then: passwd to change your password.

Also, you can edit the /etc/shadow file manually if you don't want to chroot and run passwd.
Have fun, and let us know if you need help!
saeidw wroteIf you have a LiveCD
don't have the live cd :(
saeidw wroteIf you have a LiveCD, just stick it in, boot into the live distro, and mount your hard disk. Let's say you mounted your disk (/dev/sda1 for example) onto /mnt/mydisk. Then you can simply chroot and run the passwd utility to change the root password.

First: use su to become root.
Then: chroot /mnt/mydisk so that the root of your filesystem becomes /mnt/mydisk
Then: passwd to change your password.

Also, you can edit the /etc/shadow file manually if you don't want to chroot and run passwd.
Have fun, and let us know if you need help!
you saved me some time writing this :D
don't have the live cd :(
lol don't you have an live cd ISO of BT4 ? if not, just download it from their wesbite.
I downloaded BT4r2.ISO last month but i gave the CD To one of my friends.I'm not going to redownload it because it's a 2gb file .
dan961 wroteI downloaded BT4r2.ISO last month but i gave the CD To one of my friends.I'm not going to redownload it because it's a 2gb file
Easy! Grab Damn Small Linux (it's 50MB, that's damn small). Burn the ISO to a CD or make a bootable flash disk, and use it to execute the above plan.

With GNU/Linux there's about a million ways to do something, so don't worry too much about being locked out of your system. I've trashed enough GNU/Linux systems and there has always been a way to fix it. As a precaution, I like to keep System Rescue CD handy for such emergencies.
During boot hold shift until you see the grub menu, the edit the kernel line pressing e and add at the end of the kernel line the word. "single" and boot it, you should get to a basic root shell. Try it out.
leblinux wroteDuring boot hold shift until you see the grub menu, the edit the kernel line pressing e and add at the end of the kernel line the word. "single" and boot it, you should get to a basic root shell. Try it out.
not working!