Lines Matching defs:pw
643 struct passwd *pw = NULL;
664 pw = getpwnam(run_user);
668 if (pw != NULL)
669 (void) chown(run_dir, pw->pw_uid, pw->pw_gid);
672 if (pw != NULL) { /* run as the requested user */
674 pw->pw_name, pw->pw_uid, pw->pw_gid);
675 initgroups(pw->pw_name, pw->pw_gid);
676 setgid(pw->pw_gid);
677 setuid(pw->pw_uid);