I use Ubuntu 16.04 LTS, and I'm wondering where I can find the hashes for the user account passwords.
Asked
Active
Viewed 1,597 times
1
2 Answers
4
User information is stored in /etc/passwd and passwords are stored /etc/shadow
Each entry in /etc/shadow contains the user's login, their encrypted password, and a number of fields relating to password expiration
GAD3R
- 66,769
NinjaGaiden
- 324
1
Total user information means
1. Account Information
2. Authentication Information
Account Information store in /etc/passwd file
Authentication Information store in /etc/shadow file but only Only root user can see the information
So if you want to see the authentication information means password information you may check the /etc/shadow file with
$sudo cat /etc/shadow
Rakib
- 2,435
/etc/shadow. – AlexP Jan 03 '17 at 21:45pam-auth-updateand/etc/pam.d/common-auth, at least. Remember also that our goal should be to not only answer the OP's question but leave a useful artifact for future visitors, so an ideal answer wouldn't just presume a default install. I.e., a future person who inherits a Debian box could find/etc/shadowempty-ish, and wonder "where ARE the passwords kept‽" – derobert Jan 03 '17 at 22:13