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


Text Size:  Default Text Size  B  Text Large  

Web2.0

View Francois Ropert's profile on LinkedIn

Calendrier

novembre 2008
L Ma Me J V S D
« oct    
 12
3456789
10111213141516
17181920212223
24252627282930

Derniers articles

Liens externes

Live Blog Stats