Free your Juniper JunOS Olive password recovery
août 14th, 2008
From logs I learn the last time I boot on my Juniper JunOS Olive vmware was 1 year ago.
Not surprisingly I forgot my password.
I tried password recovery official methods and other stuff from Google which leaded to an epic FAIL.
Well you know, Olive is just a hack. Gladly Freebsd and UNIX commands are inside and today is a creativity day
Here’s my unofficial method to recover the root password if you are really really stuck:
fsck /dev/ad0s1e
mount -o rw /dev/ad0s1e /config
gunzip juniper.conf.gz
mv juniper.conf juniper.orig
cat -b juniper.orig
export NEWROOTPWD=”plain-text-password \”root\”;”
sed “4s/.*/ ${NEWROOTPWD}/g” juniper.orig >> juniper.conf
gzip juniper.conf
rm juniper.orig
cd /
umount /dev/ad0s1e
reboot
hura! Your console access is back!
Entry Filed under: Juniper
