The time I accidentally locked myself out of sudo, I mounted the
locked hdd on another linux pc and edited the shadow file, copying the
hash for sudo with the known password to the drive with the unknown
password. I would not recommend trying that unless you are confident
about editing operating system configuration files.
Ok guys, I finally had to reinstall Debian bookworm and lost all my passwords. I did get a refund on the VPN but have spent the last
three days changing all my passwords to get into the bills and pay
them. I went for PIA VPN and followed instructions to get me into the
root area.
When I went to the terminal I first followed the directions which
stated sudo. I put in my new password and with no way to check it I
hit enter. Three times I did this and was very careful to put it in correctly. It would not take it and kept saying not accepted.
So today I tried it again with just su and got the same results.
I am at a complete loss. If I can't get into the sudo file I cannot
install anything in root. I really need your knowledge. I always
double and sometimes triple check everything I do. Passwords are
written down and double checked especially the new ones I made.
Thank you in advance.
Moe
Ok guys, I finally had to reinstall Debian bookworm and lost all my passwords. I did get a refund on the VPN but have spent the last three
days changing all my passwords to get into the bills and pay them. I
went for PIA VPN and followed instructions to get me into the root area.
When I went to the terminal I first followed the directions which stated sudo. I put in my new password and with no way to check it I hit
enter. Three times I did this and was very careful to put it in correctly. It would not take it and kept saying not accepted.
So today I tried it again with just su and got the same results.
I am at a complete loss. If I can't get into the sudo file I cannot
install anything in root. I really need your knowledge. I always
double and sometimes triple check everything I do. Passwords are
written down and double checked especially the new ones I made.
Thank you in advance.
Moe
The next time you log in, sudo(8) should work:
$ sudo pia-linux-3.6.1-08339.run
On Mon, Jun 30, 2025 at 21:36:14 -0700, David Christensen wrote:
The next time you log in, sudo(8) should work:
$ sudo pia-linux-3.6.1-08339.run
Even if sudo works, that command won't. It would need to be something
like:
sudo chmod +x pia-linux-3.6.1-08339.run
sudo ./pia-linux-3.6.1-08339.run
However, your instructions still leave out one critical piece that I
suspect Moe may be overlooking:
* "su" uses the ROOT password.
* "sudo" uses YOUR password.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 149:47:24 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,777 |