Tweets from pichat
| Follow my new user account @markseu About 2 months, 3 weeks ago from Pichat (Pichat Software) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 3 months, 3 weeks ago from 600infos (Wolf) |
Trace: » formatiere Schrift » gksu » herunterfahren.cmd » Hex2Dec » osCommerce » Reset Password
You are here: Pichat Wiki (en) » Snippets » Reset Password
Reset Password
for lost passwords in debian:
- boot to grub
- press E during kernelselection
- add in the row of the kernel:
init=/bin/bash - boot now Ctrl+X
mount -o remount,rw /
mount -avt nonfs,noproc,nosmbfs- edit passwd
vi /etc/shadow
delete password forroot::15120:0:99999:7:::
and/oruser::15120:0:99999:7:::
orcp /etc/shadow /tmp/shadow && sed -e 's/root:\(.*\):\(.*\):\(.*\):\(.*\):\(.*\):\(.*\)::/root::\2:\3:\4:\5::/g' /tmp/shadow /etc/shadow - change password now:
passwd
and/orpasswd user reboot
mount -o remount,rw / mount -avt nonfs,noproc,nosmbfs cp /etc/shadow /tmp/shadow sed -e 's/root:\(.*\):\(.*\):\(.*\):\(.*\):\(.*\):\(.*\)::/root::\2:\3:\4:\5::/g' /tmp/shadow /etc/shadow passwd root abc123 abc123 ! use password abc123 for root login now reboot