----------------------------------------------------------------------------------
@MSGID: 2@gonzo.revmaps.no-ip.org>
1f1f7590
@REPLY: 1@dont-email.me> f75e113b
@REPLYADDR Jasen Betts <usenet@revmaps.no-ip.org>
@REPLYTO 2:5075/128 Jasen Betts
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
2@gonzo.revmaps.no-ip.org>
@RFC-References: 1@dont-email.me>
2@dont-email.me> 1@dont-email.me>
@TZUTC: -0000
@PID: slrn/1.0.3 (Linux)
@TID: FIDOGATE-5.12-ge4e8b94
On 2023-09-16, MarioCCCP <
NoliMihiFrangereMentulam@libero.it> wrote:
> On 15/09/23 19:11, Chris Elvidge wrote:
>> On 15/09/2023 16: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
>>>
>>>
>>>
>>
>> Or `sudo -i` and then `passwd`
>>
>
> In the former post you suggested this cmd. Try it! `passwd root`
> Silly me for not having studied it before trying ... I
> imagined it would SHOW the current password, not to try to
> change it. :
> So the solution is to reset it, but before trying I have to
> clarify some things VERY CONFUSED TO ME.
>
> Particularly : the difference of the root keyword AS A ROLE
> vs AS A DEFAULT USERNAME (with the implicit root ROLE).
>
> As I said in the intro.
> I do have a known account (pippo) with also ROOT ROLE, and
> that pwd works
so when logged in as pippo the command "id -u" prints "0" ?
if it does not it is not a root role.
> Then It seems to exist a root account (root username) with
> root role, which was not explicitely created. (but when
> logged in sees a different home folder (different from
> home/pippo ... so it seems to be a real username)
yes root is a real username.
> during boot problems, it is this latter password that is
> being asked.
>
> So my question is : how to reset SPECIFICALLY this root
> (username AND role) password ?
either edit /etc/shadow abd remove the password hash (eg by mounting
the driver on a different comouter), or do like "sudo passwd root" as
pippo
> If I am logged in as Pippo via SUDO -i, have I excaled the
> "role", enabling root privileges, but always being Pippo, or
> have I really logged in as root (username and role) ?
>
> tnx for every clafification.
You have escaped pippo becoming root. there are some breadcumbs left
in your process environment, but for most purposes you are root.
--
Jasen.
?? Слава Українi
--- slrn/1.0.3 (Linux)
* Origin: JJ`s own news server (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441