Home
last modified time | relevance | path

Searched refs:pwdp (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c95 struct passwd *pwdp; in main() local
230 if ((pwdp = fgetpwent(pwf)) != NULL) { in main()
232 (sp = local_getspnam(pwdp->pw_name)) == NULL) { in main()
241 sp->sp_namp = pwdp->pw_name; in main()
242 if (!pwdp->pw_passwd || in main()
243 (pwdp->pw_passwd && in main()
244 *pwdp->pw_passwd == '\0')) { in main()
255 sp->sp_pwdp = pwdp->pw_passwd; in main()
256 pwdp->pw_passwd = pwdflr; in main()
262 if (pwdp->pw_age && *pwdp->pw_age != 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dnlps_serv.c625 struct passwd *pwdp; in exec_cmd() local
729 if ((pwdp = getpwnam(wdbp->dbf_id)) == NULL) { in exec_cmd()
736 if (setgid(pwdp->pw_gid)) { in exec_cmd()
737 if ((grpp = getgrgid(pwdp->pw_gid)) == NULL) { in exec_cmd()
738 sprintf(msgbuf, "NLPS: No group entry for %ld", pwdp->pw_gid); in exec_cmd()
747 if (setuid(pwdp->pw_uid)) { in exec_cmd()
753 if (chdir(pwdp->pw_dir)) { in exec_cmd()
754 sprintf(msgbuf, "NLPS: Cannot chdir to %s", pwdp->pw_dir); in exec_cmd()
761 sprintf(homeenv, "HOME=%s", pwdp->pw_dir); in exec_cmd()
762 DEBUG((9,"HOME=%s", pwdp->pw_dir)); in exec_cmd()
H A Dlisten.c1336 struct passwd *pwdp; local
1434 if ((pwdp = getpwnam(dbp->dbf_id)) == NULL) {
1440 if (setgid(pwdp->pw_gid)) {
1441 if ((grpp = getgrgid(pwdp->pw_gid)) == NULL) {
1442 sprintf(msgbuf, "No group entry for %ld", pwdp->pw_gid);
1451 if (setuid(pwdp->pw_uid)) {
1457 if (chdir(pwdp->pw_dir)) {
1458 sprintf(msgbuf, "Cannot chdir to %s", pwdp->pw_dir);
1466 sprintf(homeenv, "HOME=%s", pwdp->pw_dir);
1468 if (pwdp->pw_uid)
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmpmtab.c771 struct passwd *pwdp; in check_identity() local
777 if ((pwdp = getpwnam(p->p_identity)) == NULL) { in check_identity()
782 if (getgrgid(pwdp->pw_gid) == NULL) { in check_identity()
783 log("no group entry for %ld", pwdp->pw_gid); in check_identity()
788 p->p_uid = pwdp->pw_uid; in check_identity()
789 p->p_gid = pwdp->pw_gid; in check_identity()
790 p->p_dir = strsave(pwdp->pw_dir); in check_identity()
H A Dttymon.c148 struct passwd *pwdp; in initialize() local
223 if ((pwdp = getpwnam(UUCP)) != NULL) in initialize()
224 Uucp_uid = pwdp->pw_uid; in initialize()
/illumos-gate/usr/src/cmd/fuser/
H A Dfuser.c202 struct passwd *pwdp; in report_process() local
216 ((pwdp = getpwuid(f_user->fu_uid)) != NULL)) in report_process()
217 (void) fprintf(stderr, "(%s)", pwdp->pw_name); in report_process()
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/
H A Dsysevent_conf_mod.c506 struct passwd *pwdp; in parse_conf_file() local
559 sizeof (pwdbuf), &pwdp); in parse_conf_file()
560 if (i != 0 || pwdp == NULL) { in parse_conf_file()
589 if (setregid(pwdp->pw_gid, -1) == -1) { in parse_conf_file()
591 whoami, pwdp->pw_gid, strerror(errno)); in parse_conf_file()
594 if (setreuid(pwdp->pw_uid, -1) == -1) { in parse_conf_file()
596 whoami, pwdp->pw_uid, strerror(errno)); in parse_conf_file()
634 sep->se_uid = pwdp->pw_uid; in parse_conf_file()
635 sep->se_gid = pwdp->pw_gid; in parse_conf_file()
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.c2042 struct passwd *pwdp; in lookup_pwd() local
2057 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf, in lookup_pwd()
2059 } while (pwdp == NULL && errno == EINTR); in lookup_pwd()
2060 if (pwdp != NULL) in lookup_pwd()
2122 struct passwd *pwdp; in get_uid() local
2133 pwdp = in get_uid()
2135 } while (pwdp == NULL && errno == EINTR); in get_uid()
2137 if (pwdp != NULL) { in get_uid()
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddbutils.c2958 struct passwd pwd, *pwdp; in ns_lookup_byname() local
2969 pwdp = getpwnam_r(name, &pwd, buf, pwdbufsiz); in ns_lookup_byname()
2970 if (pwdp == NULL && errno == 0 && lower_name != NULL && in ns_lookup_byname()
2972 pwdp = getpwnam_r(lower_name, &pwd, buf, pwdbufsiz); in ns_lookup_byname()
2973 if (pwdp == NULL) { in ns_lookup_byname()