Home | History | Annotate | Download | only in progs

Lines Matching refs:groups

27 #define MAX_GROUPS       100   /* max number of supplementary groups for user */
366 } else if (!memcmp("--groups=", argv[i], 9)) {
390 fprintf(stderr, "Too many groups specified (%d)\n", g_count);
414 gid_t groups[MAX_GROUPS];
424 status = getgrouplist(user, pwd->pw_gid, groups, &ngroups);
429 status = setgroups(ngroups, groups);
491 gid_t groups[MAX_GROUPS], gid;
550 printf("groups=");
551 status = getgroups(MAX_GROUPS, groups);
554 g = getgrgid(groups[j]);
555 printf("%s%u(%s)", sep, groups[j], g ? g->gr_name : "???");
579 " --groups=g,... set the supplemental groups\n"
580 " --user=<name> set uid,gid and groups to that of user\n"