- Boot with gparted
- cd /tmp
- mkdir test
- mount /dev/sda1 /tmp/test
- chroot /dev/test /bin/bash
- Change:
/etc/passwd:
root:x:0:0:root:/root:/sbin/nologin
admin:x:591:503::/home/admin:/usr/local/platform/bin/cliscript.sh
to:
root:x:0:0:root:/root:/bin/bash
admin:x:591:503::/home/admin:/bin/bash
/etc/shadow
root:!!:14657:0:99999:7:::
to:
root:$1$D2ISXWJF$urnCHPxcF20BUWWwvTZfX0:14657:0:99999:7:::
/etc/sudoers
add the Line for admin under the user privilege specification so that it looks like this:
# User privilege specification
root   ALL=(ALL) ALL
admin  ALL=(ALL) ALL
- exit
- cd /tmp
- umount /tmp/test
- umount /dev/sda1
- reboot
- login with admin and your password, you are in the bash shell, not in the cisco cli anymore
- enter sudo su and your login password and you become root
Comments are disabled until you accept functional cookies.