Lines Matching refs:group
30 "Usage: %s [ <options> ] <group name>\n"
31 "Creates a new group <group name>.\n"
35 " Add the user <user> to the group.\n"
39 " Remove the user <user> from the group.\n"
94 const char* group = argv[optind];
101 // get the group
102 struct group* groupInfo = getgrnam(group);
104 fprintf(stderr, "Error: Group \"%s\" doesn't exist.\n", group);
117 || message.AddString("name", group) != B_OK
119 || message.AddBool("add group", false) != B_OK) {
132 fprintf(stderr, "Error: \"%s\" is not a member of group \"%s\"\n",
133 usersToRemove.begin()->c_str(), group);
137 // If the group doesn't have any more members, insert an empty string as an
154 fprintf(stderr, "Error: Failed to create group: %s\n", strerror(error));