1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On 10.01.2012 19:46, Tanstaafl wrote: |
5 |
> Ok, I did something really dumb... |
6 |
> |
7 |
> I changed the root passwd for a system I manage last week, but |
8 |
> neglected to write it down, and now what I *thought* I had changed |
9 |
> it to isn't working... I know, I know, really *really* dumb, but |
10 |
> that's where I am... |
11 |
> |
12 |
> I know I can boot into Single User mode, remount the root |
13 |
> partition read/write, and edit /etc/shadow (removing the encrypted |
14 |
> passwd), then rest it using passwd, but... |
15 |
> |
16 |
> Some of the accounts in /etc/shadow have a '*' where the encrypted |
17 |
> passwd would be, and some have a '!'... (ie, one is sshd:!:... and |
18 |
> another is halt:*:...) |
19 |
> |
20 |
> Does it matter what I change it to? Should I use a *, !, or nothing |
21 |
> at all (so that there is *nothing* between the two :: that would |
22 |
> normally contain the encrypted passwd)? |
23 |
> |
24 |
> Thanks... |
25 |
> |
26 |
|
27 |
The simpelest solution should be to copy the password-hash of a user |
28 |
whose password is know to you. |
29 |
Afterwards you can log in an change the password again. And for the |
30 |
future: http://xkcd.com/936/ ;) |
31 |
-----BEGIN PGP SIGNATURE----- |
32 |
Version: GnuPG v2.0.18 (GNU/Linux) |
33 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
34 |
|
35 |
iQEcBAEBAgAGBQJPDI20AAoJEJwwOFaNFkYceuMH/0DJgaQ+6HH0zUkKl8y5wTW6 |
36 |
Kn2grThJwhrbAhzpQxRV2UOvwnVIc93LIfZXdtqISzyhYCtUo1BaYMCVNIn6Rcmj |
37 |
wbgk1sI3ql49SvH+Tfai/DyW0WzHbFmSsYu36xzGl02xZpuUeKSpk/cTmINz1wq4 |
38 |
HUA/Ej9x0jEAcNNby5t5neiTt4B3ILaFyAMQbVKVIyZy/8beoR/Rn+7bET0DoFJU |
39 |
QneX+fa98IYjLUFlAjENQnyNly/koEt/+RIrffbBAPUOYc3wcX+e/q9vIVrKad3H |
40 |
Ah+BpQOwAkceog33Y2HqNrKMMOfp3R2Nm1GgbqQpFe7N2A329OqLBPfMPs8Ejts= |
41 |
=EHqa |
42 |
-----END PGP SIGNATURE----- |