By mistake I locked my admin account on Debian with passwd -l.I'm trying with live CD to unlock my account with no sucess. I've tried editing passwd file by removing x, but that didn't work./etc/passwdroot:x:0:0:root:/root:/bin/bashany ideas?
How to unlock admin account
debian;passwd;accounts
If you have an account with sudo permission, you can run:sudo passwd rootto unlock root password.If you don't have sudo permission, you should boot into single user mode (by editing boot option if you use grub) or using a live cd, then editing /etc/shadow file (not /etc/passwd) to remove pair of exclamation mark !! or ! before hash password, example:root:!!<hash password here>:9797:0:::::After that, reboot and now you can log in with root again.