On 15/09/23 17:38, MarioCCCP wrote:
>
> I have a Debian install on which I have only one EXPLICIT (=
> created) user, say Pippo, with full sudoer and "admin" rights.
> I still have its password correct, but I fail to reliably
> login as Pippo + correct password.
>
>
> Then it is an "implicit" root user, which seems to have a
> different password I forgot.
>
> The bad thing is : in recovery mode at boot it is the only
> one it asks for to do maintenance, despite Pippo having root
> / admin privileges too (it does not asks to Login, and don't
> accept Pippo's PWD, it asks for ROOT PWD alone).
>
> So, now for a Miracle I am logged in as Pippo, which has
> roor rights (it is a sudoer).
>
> Can I recover the root passeword ?
> If not, can I reset from Pippo logged in ?
>
> TNX for hints
>
>
>
update : I evidently failed to diagnose the problem. There
must be sth very wrong somewhere.
I managed to login loading the former kernel in recovery
mode. This procedure does not always work, as I have to skip
the "GIVE ROOT PASSWORD" request at least some times with
pwds not being accepted and then follow the alternative "OR
PRESS CTRL+D TO CONTINUE" (which sometimes works, if not I
reboot the harsh way).
Anyway, I logged in.
Then, at Pippo sudo -i, I reset the root password as many
suggested. And it worked once logged in, in fact it allowed
to also excalate doing SU (not sudo), which formerly was not
allowed.
On reboot, though, the newest kernel fails to load, it get
stuck and unresponsive to any keyboard event
(CTRL+ALT+F1...F3, ALTGR+SYSRQ then RSEISUB, CTRL+ALT+BCKSP,
CTRL+ALT+CANC) : no response.
If i try to load the former kernel, and again it asks for
some not precised maintenance, IT STILL REFUSES TO ACCEPT
THE FRESLY RESET PWD. Since the reset pwd is equal to
Pippo's SUDO one, there seem no viable pwd able to enter in
maintenance mode ...
I dunno what the system has. I tried some random things as
update-grub, update-initramfs -u, chkboot. But nothing changes.
Maybe the password not recognized is the tip of an iceberg ...