Lines Matching refs:group
3 * addgroup - add groups to /etc/group and /etc/gshadow
22 static void xgroup_study(struct group *g)
28 bb_error_msg_and_die("%s '%s' in use", "group", g->gr_name);
48 return; /* found free group: return */
65 static void new_group(char *group, gid_t gid)
67 struct group gr;
70 /* make sure gid and group haven't already been allocated */
72 gr.gr_name = group;
75 /* add entry to group */
77 if (update_passwd(bb_path_group_file, group, p, NULL) < 0)
85 * If set, non-members of the group can join the group
86 * by typing the password for that group using the newgrp command.
88 * to access the group using the newgrp command. A value of !!
91 * only group members can log into the group.
93 * Group members listed here can add or remove group members
98 update_passwd(bb_path_gshadow_file, group, "!::", NULL);
114 * will add an existing user to an existing group.
130 * addgroup group
131 * addgroup -g num group
132 * addgroup user group
142 struct group *gr;
145 /* -g was there, but "addgroup -g num user group"
150 /* check if group and user exist */
152 gr = xgetgrnam(argv[1]); /* unknown group: exit */
153 /* check if user is already in this group */
156 /* user is already in group: do nothing */