Score:1

Two root entries in my passwd file

vu flag

In Ubuntu 20.04, there are two root entries I find in my passwd file.

When I use grep root /etc/passwd, I get:

root:x:0:0:root:/root:/bin/bash
root:x:0:0:root:/root:/bin/bash

and when I use grep root /etc/group, I get:

root:x:0:

and when I use grep root /etc/shadow, I get:

root:$6$SdmRmWLQLDizwk9Y$T4TiAQS1cml..78.Ac00hj9HHq5oo8EzoJBJEdhUMlLA9s9fQO89BBwB35pUxRvlprl1kaMZtQYSicMLqXCur.:19300:0:99999:7:::

I never changed my root password, but the number 19300 means I changed it 7 days ago.

Is it normal to have two root users in my machine?

And if not, what does that mean?

cc flag
It means something probably messed up when you too the unexpected action of adding a root password. Ubuntu was set up explicitly without a root password. Probably doesn't hurt anything.
whyamiruning avatar
vu flag
So that's mean nothing, just a little problem would happen when i set root password?
FedKad avatar
cn flag
How old is your system? Do you have backups of these files? What are the contents of the respective files whose names end with a dash (`-`)?
whyamiruning avatar
vu flag
I reinstall ubuntu 20.04 one month ago,and i think you mean that?
whyamiruning avatar
vu flag
I haven't backups any files. The files that end with (-) are all under "/etc". Like subuid- , group-, passwd- ,etc. Beside "/var/lib/snapd/assertions/asserts-v0/snap-revision/3DKPgFxvvKtdXIQlhNSGxrT6vMpab_oZTPq2_Ei91UeRsrjO4lSN-9olDJBDG9x-"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.