Lines Matching full:shadow
34 /* password file to the shadow file. */
42 #include <shadow.h>
60 #define BADSHW 6 /* Bad entry in shadow file */
70 * getspnan routine that ONLY looks at the local shadow file
79 if ((shadf = fopen("/etc/shadow", "r")) == NULL) in local_getspnam()
178 /* default mode mask of the shadow file */ in main()
181 /* check the existence of shadow file */ in main()
182 /* if the shadow file exists, get mode mask and group id of the file */ in main()
186 if (access(SHADOW, F_OK) == 0) { in main()
187 if (stat(SHADOW, &buf) == 0) { in main()
202 * get the mode of shadow password file -- mode of the file should in main()
207 /* open temporary shadow file */ in main()
214 /* change the group of the temporary shadow password file */ in main()
221 /* If the shadow password file not exists, or */ in main()
223 /* the shadow file, entries/entry will be created. */ in main()
237 /* Bad entry in shadow exit */ in main()
254 * file to the shadow file. in main()
294 * the entry will be written into the shadow file in main()
372 /* write an entry to temporary shadow password file */ in main()
422 /* delete old shadow password file if it exists */ in main()
433 /* link shadow password file to old shadow password file */ in main()
434 if (file_exist && rename(SHADOW, OSHADOW)) { in main()
445 /* link temporary shadow password file to shadow password file */ in main()
446 if (rename(SHADTEMP, SHADOW) == -1) { in main()
447 /* link old shadow password file to shadow password file */ in main()
448 if (file_exist && (link(OSHADOW, SHADOW))) { in main()
511 gettext("%s: Bad entry in /etc/shadow. Conversion not done.\n"), in f_bdshw()