-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10.01.2012 19:46, Tanstaafl wrote:
> Ok, I did something really dumb...
> 
> I changed the root passwd for a system I manage last week, but
> neglected to write it down, and now what I *thought* I had changed
> it to isn't working... I know, I know, really *really* dumb, but
> that's where I am...
> 
> I know I can boot into Single User mode, remount the root
> partition read/write, and edit /etc/shadow (removing the encrypted
> passwd), then rest it using passwd, but...
> 
> Some of the accounts in /etc/shadow have a '*' where the encrypted 
> passwd would be, and some have a '!'... (ie, one is sshd:!:... and 
> another is halt:*:...)
> 
> Does it matter what I change it to? Should I use a *, !, or nothing
> at all (so that there is *nothing* between the two :: that would
> normally contain the encrypted passwd)?
> 
> Thanks...
> 

The simpelest solution should be to copy the password-hash of a user
whose password is know to you.
Afterwards you can log in an change the password again. And for the
future: http://xkcd.com/936/ ;)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPDI20AAoJEJwwOFaNFkYceuMH/0DJgaQ+6HH0zUkKl8y5wTW6
Kn2grThJwhrbAhzpQxRV2UOvwnVIc93LIfZXdtqISzyhYCtUo1BaYMCVNIn6Rcmj
wbgk1sI3ql49SvH+Tfai/DyW0WzHbFmSsYu36xzGl02xZpuUeKSpk/cTmINz1wq4
HUA/Ej9x0jEAcNNby5t5neiTt4B3ILaFyAMQbVKVIyZy/8beoR/Rn+7bET0DoFJU
QneX+fa98IYjLUFlAjENQnyNly/koEt/+RIrffbBAPUOYc3wcX+e/q9vIVrKad3H
Ah+BpQOwAkceog33Y2HqNrKMMOfp3R2Nm1GgbqQpFe7N2A329OqLBPfMPs8Ejts=
=EHqa
-----END PGP SIGNATURE-----

Reply via email to