Questions tagged [shadow-database]

/etc/shadow is a file on UNIX systems which contains the password information for the system's accounts and optional aging information.

Long ago it was considered safe to have encrypted passwords openly visible in the password file. When computers got faster and people got more security-conscious, this was no longer acceptable. Julianne Frances Haugh implemented the shadow password suite that keeps the encrypted passwords in the shadow password database (e.g., the local shadow password file /etc/shadow, NIS, and LDAP), readable only by root.

Source: Linux Programmer's Manual

1 questions
2
votes
1 answer

should my program lock /etc/.pwd.lock when reading /etc/passwd?

I'm writing some program that reads /etc/{passwd,group}. I learned that any program should lock /etc/.pwd.lock by calling lckpwdf() before writing the above files so that write collisions can be avoided. I guess reading operation also needs this…
fpemud
  • 363
  • 3
  • 10