[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Locked out! How to circumvent password urgently?



Hello

Anthony Campbell (<ac@acampbell.org.uk>) wrote:

> I can't access my laptop because neither the user nor the root
> passwords work. I can only think I was hacked last night.
> 
> I can't access via single user either.
> 
> I can get into the system via knoppix. Are there any files in /etc I
> can delete in order to make the system accessible without a password?

You can edit the passwd or shadow file. Or you can chroot into the
installed system and run passwd. Or you can boot from hard disk, and
append

init=/bin/sh

to the boot loader command line. You will boot directly into a shell, no
login is required. Run

mount -o remount,rw /
passwd
reboot

best regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html



Reply to: