Difference between etc/passwd and the etc/shadow

What's the difference between etc/passwd and the etc/shadow file?
  • In the line:
    • root:my_password:0:0:root:/root:/bin/bash
  • The field match:
    • login:pwd:iduser:idgroup:homedirectory:shell
  • /etc/passwd is readable by everyone but the passwords are stored in /etc/shadow, are only readable only under root account. They are encoded with MD5 for better security.
Published by jak58. Latest update on August 4, 2010 at 11:03 AM by jak58.
This document, titled "Difference between etc/passwd and the etc/shadow," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).
Unable to access CUPS- admin password lost!
Linux - Command to shut down your PC