Home
last modified time | relevance | path

Searched refs:pw_gid (Results 1 – 25 of 92) sorted by relevance

1234

/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Duidswap.c65 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid()
95 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in temporarily_use_uid()
107 if (setregid(pw->pw_gid, -1) == -1) in temporarily_use_uid()
108 debug("setregid(%u, -1): %.100s", (uint_t)pw->pw_gid, strerror(errno)); in temporarily_use_uid()
121 if (setegid(pw->pw_gid) == -1) in temporarily_use_uid()
192 debug("%s: %u/%u", __func__, (u_int)pw->pw_uid, (u_int)pw->pw_gid); in permanently_set_uid()
194 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in permanently_set_uid()
198 if (setgid(pw->pw_gid) < 0) in permanently_set_uid()
199 fatal("setgid %u: %.100s", (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid()
/titanic_41/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c332 if (adt_set_user(ah, apwd.pw_uid, apwd.pw_gid, in pam_sm_setcred()
333 apwd.pw_uid, apwd.pw_gid, termid, ADT_NEW) != 0) { in pam_sm_setcred()
340 if (adt_set_user(ah, pwd.pw_uid, pwd.pw_gid, in pam_sm_setcred()
341 pwd.pw_uid, pwd.pw_gid, NULL, in pam_sm_setcred()
360 if (adt_set_user(ah, pwd.pw_uid, pwd.pw_gid, in pam_sm_setcred()
361 pwd.pw_uid, pwd.pw_gid, termid, ADT_NEW) != 0) { in pam_sm_setcred()
381 if (adt_set_user(ah, pwd.pw_uid, pwd.pw_gid, pwd.pw_uid, in pam_sm_setcred()
382 pwd.pw_gid, NULL, ADT_UPDATE) != 0) { in pam_sm_setcred()
/titanic_41/usr/src/cmd/login/
H A Dlogin_audit.c71 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, in audit_success()
72 pwd->pw_uid, pwd->pw_gid, NULL, ADT_USER)) { in audit_success()
222 gid = pwd->pw_gid; in audit_failure()
/titanic_41/usr/src/cmd/oamuser/user/
H A Dusermod.c133 npw->pw_gid = opw->pw_gid;
451 gid = pstruct->pw_gid;
454 if (gid != pstruct->pw_gid)
458 } else gid = pstruct->pw_gid;
488 pstruct->pw_gid, S_IWOTH|S_IXOTH) != 0) {
/titanic_41/usr/src/cmd/groups/
H A Dgroups.c120 groups[0] = pw->pw_gid; in showgroups()
127 (void) printf("%d", (int)pw->pw_gid); in showgroups()
/titanic_41/usr/src/lib/libproject/common/
H A Dgetprojent.c239 ismember(result, user, p.pw_gid, DEFAULT_PROJECT)) in _getdefaultproj()
241 if (getgrgid_r(p.pw_gid, &g, buffer, buflen) != NULL) { in _getdefaultproj()
247 ismember(result, user, p.pw_gid, DEFAULT_PROJECT)) in _getdefaultproj()
254 ismember(result, user, p.pw_gid, DEFAULT_PROJECT)) in _getdefaultproj()
279 gid = pwd.pw_gid; in _inproj()
/titanic_41/usr/src/lib/libast/common/string/
H A Dstrgid.c91 id = pw->pw_gid; in strgid()
106 id = pw->pw_gid; in strgid()
/titanic_41/usr/src/cmd/newgrp/
H A Dnewgrp.c128 p->pw_gid = chkgrp(argv[0], p); in main()
141 if (setgid(p->pw_gid) < 0 || setuid(getuid()) < 0) in main()
246 if (p->pw_gid == g->gr_gid || getuid() == 0) {
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetpwnam_r.c275 passwd->pw_gid = GID_NOBODY; in str2passwd()
367 passwd->pw_gid = GID_NOBODY; in str2passwd()
369 passwd->pw_gid = (gid_t)tmp; in str2passwd()
H A Dputpwent.c58 p->pw_gid, in putpwent()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c346 *(argp->gidp) = pw.pw_gid; in netname2user_ldap()
350 groups[0] = pw.pw_gid; in netname2user_ldap()
353 (pw.pw_gid <= MAXUID) ? 1 : 0); in netname2user_ldap()
/titanic_41/usr/src/lib/passwdutil/
H A Dutils.c98 (*d)->pw_gid = s->pw_gid; in dup_pw()
H A Dswitch_utils.c319 passwd->pw_gid = GID_NOBODY; in str2passwd()
388 passwd->pw_gid = strtol(p, &next, 10); in str2passwd()
397 if (passwd->pw_gid > MAXUID) in str2passwd()
398 passwd->pw_gid = GID_NOBODY; in str2passwd()
H A Dnis_attr.c111 pwd->pw_gid = atoi(strsep(&nis, ":")); in nis_to_pwd()
241 w->data.val_i = nisbuf->pwd->pw_gid; in nis_getattr()
417 nisbuf->pwd->pw_gid = (gid_t)p->data.val_i; in nis_update()
/titanic_41/usr/src/lib/libbc/inc/include/
H A Dpwd.h41 int pw_gid; member
/titanic_41/usr/src/lib/libbc/inc/5include/
H A Dpwd.h59 gid_t pw_gid; member
/titanic_41/usr/src/cmd/su/
H A Dsu.c426 gid = pwd.pw_gid; in main()
809 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, pwd->pw_uid, in audit_success()
810 pwd->pw_gid, NULL, ADT_USER) != 0) { in audit_success()
1023 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, pwd->pw_uid, in audit_failure()
1024 pwd->pw_gid, NULL, ADT_UPDATE) != 0) { in audit_failure()
1446 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, pwd->pw_uid, in update_audit()
1447 pwd->pw_gid, NULL, ADT_UPDATE) != 0) { in update_audit()
/titanic_41/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c43 if (!xdr_int(xdrsp, (int *)&pw->pw_gid)) in xdr_passwd()
/titanic_41/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c47 sprintf(numbuf, "%d", pw->pw_gid); in getpw()
/titanic_41/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdxdr.c47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) { in xdr_passwd()
/titanic_41/usr/src/test/zfs-tests/cmd/chg_usr_exec/
H A Dchg_usr_exec.c62 if (setgid(ppw->pw_gid) != 0) { in main()
/titanic_41/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c51 sprintf(numbuf, "%d", pw->pw_gid); in getpw()
/titanic_41/usr/src/cmd/print/bsd-sysv-commands/
H A Din.lpd.c669 (void) chown(run_dir, pw->pw_uid, pw->pw_gid); in main()
674 pw->pw_name, pw->pw_uid, pw->pw_gid); in main()
675 initgroups(pw->pw_name, pw->pw_gid); in main()
676 setgid(pw->pw_gid); in main()
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c117 char *pw_gid; member
551 key.dptr = pwd->pw_gid; in update_single_map()
847 if (NULL == (p = get_next_token(p, &(pwd->pw_gid), str_end))) in decode_pwd_entry()
993 len += strlen(pwd->pw_gid) + 1; in create_pwd_str()
1019 strcat(s, pwd->pw_gid); in create_pwd_str()
1083 old_passwd->pw_gid = NULL; in get_old_info()
/titanic_41/usr/src/cmd/ssh/sshd/
H A Daltprivsep.c580 altprivsep_packet_put_int(authctxt->pw->pw_gid); in altprivsep_send_auth_context()
787 authctxt->pw->pw_gid = packet_get_int(); in aps_read_auth_context()
791 authctxt->pw->pw_gid, authctxt->user); in aps_read_auth_context()
1123 authctxt->pw->pw_gid) < 0) { in altprivsep_start_and_do_monitor()

1234