News for hackers. Stuff that matters.
Re:The Surreal Horror of Pam by notyourday on Tuesday November 09, 2021 @05:30PM (#29168415)
> because /etc/passwd is world-readable by design for some arcane reason that I can’t find on Google

It is pretty comical when people who do not know basics of how the system permissions work wax about authentication and authorization used by the same systems.

Re:The Surreal Horror of Pam by lmilcin on Tuesday November 09, 2021 @05:39PM (#29168497)
Especially when it is not an arcane reason at all.

There was a time when it was considered ok to have the salted and MD5-hashed password available to all users.

Then people learned to bruteforce the password and so the hash itself was moved to shadow file but passwd was left because a lot of platform software and scripts depended on it.

This may shock people nowadays but back then this was fine. I remember having to explain to the users (and sometimes loosing) the need to have a password at all.

Re:The Surreal Horror of Pam by mixmastamyk on Tuesday November 09, 2021 @06:21PM (#29168920)
A different world.

The confusion rests on the name of the file I think. If it were named "accounts" (closer to its use) people wouldn't be too surprised it was readable. Then shadow could have been named "passwords."

Re:The Surreal Horror of Pam by dredmorbius on Tuesday November 09, 2021 @07:13PM (#29169387)
I've ... had that argument, and only very barely succeeded in prevailing, within single-digit years.

With a user who's lost multiple accounts to weak passwords.

Or should I say, the same weak password. Which they still use in some contexts....

I'm of the opinion that allowing users free choice in passwords is no longer viable. At a bare minimum reuse of any known-compromised password must be rejected.

Re:The Surreal Horror of Pam by not2b on Tuesday November 09, 2021 @08:57PM (#29170235)
RMS famously campaigned against passwords in his early pre-GNU days at MIT (though I'd say his perspective was specific to the computing environment then; it was more of a matter of how a small group of hackers should cooperate to use an expensive machine, he wanted everyone to have access to everything).
Re:The Surreal Horror of Pam by notyourday on Tuesday November 09, 2021 @06:12PM (#29168854)
Eh, no, it is world readable because even though programs that manipulate/read hashes are privileged, programs that map <uid>:<gid>:<name> are not. This is still the same. If you want to be able to use "ls" as a non-privileged user and see names, you need to be able to access /etc/passwd.
Re:The Surreal Horror of Pam by lmilcin on Tuesday November 09, 2021 @06:20PM (#29168913)
So... what did I write? To quote:

"but passwd was left because a lot of platform software and scripts depended on it."

Re:The Surreal Horror of Pam by notyourday on Wednesday November 10, 2021 @06:09AM (#29173392)
because it is affecting libc and glibc, not the platform software or scripts depending on it.