Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  37] [ 0]  / answers: 1 / hits: 62674  / 2 Years ago, sat, august 13, 2022, 5:29:30

Both files /etc/shadow and /etc/passwd seem to be the same, they just report some information about accounts. What is the difference between them?


More From » etc

 Answers
5

Short answer:



passwd stores general user info and shadow stores user passwd info.



Somewhat longer answer:



passwd is the file where the user information (like username, user ID, group ID, location of home directory, login shell, ...) is stored when a new user is created.



shadow is the file where important information (like an encrypted form of the password of a user, the day the password expires, whether or not the passwd has to be changed, the minimum and maximum time between password changes, ...) is stored when a new user is created.



Some interesting extra info: passwd and shadow


[#26121] Sunday, August 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mugustered

Total Points: 193
Total Questions: 123
Total Answers: 108

Location: Bermuda
Member since Wed, Mar 22, 2023
1 Year ago
;