|
|
|
|
|
by hiAndrewQuinn
999 days ago
|
|
To anyone reading this and thinking "yeah dummy, of course it doesn't scale because you're not supposed to store passwords in plain text in the first place" I'll direct you to Chapter 7ish of The Linux Programming Interface. If you look in your /etc/passwd right now, you'll almost certainly see a single "x" where the (EDIT: no, it was still encrypted!) password originally was - nowadays that single "x" is an instruction to go look in /etc/shadow instead, for the salted hash of the password you're trying to check. I think this minimizes the number of users who need read permissions to /etc/shadow, and the amount of time they need it for. This has been your seemingly useless bit of Linux trivia for today. :) |
|