Lines Matching full:shadow
34 #include <shadow.h>
91 * We should use sysconf, but there is no sysconf name for SHADOW
186 * fields that are undefined in /etc/shadow will be set to -1.
196 fp = fopen(SHADOW, "rF"); in private_getspnam_r()
235 * determine which password structure (/etc/passwd or /etc/shadow) in files_getpwnam()
821 * /etc/shadow), we keep the old value. in files_update()
901 * update the shadow password file SHADOW to contain the spwd structure
917 /* Mode of the shadow file should be 400 or 000 */ in files_update_shadow()
918 if (stat64(SHADOW, &stbuf) < 0) { in files_update_shadow()
923 /* copy mode from current shadow file (0400 or 0000) */ in files_update_shadow()
943 if ((src = fopen(SHADOW, "rF")) == NULL) { in files_update_shadow()
951 * copy old shadow to temporary file while replacing the entry in files_update_shadow()
982 * Rename stmp to shadow: in files_update_shadow()
984 * 2. ln /etc/shadow /etc/oshadow in files_update_shadow()
985 * 3. mv /etc/stmp /etc/shadow in files_update_shadow()
993 if (link(SHADOW, OSHADOW) == -1) { in files_update_shadow()
999 if (rename(SHADTEMP, SHADOW) == -1) { in files_update_shadow()
1096 * /etc/shadow.
1143 * passwd(5) and shadow(5).