News for hackers. Stuff that matters.
Re:The Surreal Horror of Pam by tremon on Tuesday November 09, 2021 @09:37PM (#29170434)
getpwnam() gets its data by parsing /etc/{passwd,shadow}[0]. It isn't a magical system call that elevates the privileges of the calling program.

[0] assuming your nsswitch says so

Re:The Surreal Horror of Pam by a-dub on Wednesday November 10, 2021 @11:31AM (#29176586)
yeah. agree, was merely pointing out the public interface for querying passwd records for the purposes of highlighting why said interface might be another reason to reconsider the proposed idea of a setuid shim that reads a read protected /etc/passwd that contains password hashes and returns only the public components.