Lines Matching refs:passwd
3 * adduser - add users to /etc/passwd and /etc/shadow
19 static int passwd_study(const char *filename, struct passwd *p)
22 FILE *passwd;
26 struct passwd pw;
27 struct passwd *result;
29 passwd = xfopen(filename, "r");
39 while (!fgetpwent_r(passwd, &pw, buffer, sizeof(buffer), &result)) {
71 static void addgroup_wrapper(struct passwd *p)
84 static const char prog[] ALIGN1 = "passwd";
91 static int adduser(struct passwd *p)
109 /* add to passwd */
114 * We will exec passwd, files must be flushed & closed before that! */
152 /* interactively set passwd */
171 struct passwd pw;
188 /* create a passwd struct */