1

Please note, I am new to ubuntu system and need some help.

My /etc/passwd and /etc/shadow files have the following details:

  • /etc/passwd:

    root:x:0:0:Super-User:/:bin/sh
    
  • /etc/shadow:

    root:giPrt.M0Q66Yc:1:0:99999::::
    

I understand that the passwd file has the root password set to x which means it is encrypted as listed in shadow file. But the root password in the shadow file has a different format compared to the following format:

  • $1$ is MD5,
  • $2a$ is Blowfish,
  • $2y$ is Blowfish,
  • $5$ is SHA-256,
  • $6$ is SHA-512,
  • $y$ is yescrypt,

So, my question is, is my password stored as plain text "giPrt" in the shadow file and what is "M0Q66Yc"?

terdon
  • 104,119

1 Answers1

1

No passwords are stored in plain text anywhere on your system. All passwords in /etc/shadow are hashed (not encrypted).

Note that a stock install of Ubuntu from an install iso has the root account disabled, and it has no password at all. Best practice is to leave it that way.

user535733
  • 68,493