Lines Matching refs:group
72 local group="${1}"
74 awk -F: -v group="${group}" \
80 local group="${1}"
82 awk -F: -v group="${group}" \
124 local group="${3}"
129 _gid="$( get_gid "${group}" )"
143 if [ -n "${_group}" -a "${_group}" != "${group}" ]; then
153 "${group}" "${username}" ${_gid} ${gid}
184 if [ -n "${_ugroup}" -a "${_ugroup}" != "${group}" ]; then
186 "${username}" "${_ugroup}" "${group}"
200 local group="${1}"
203 gid="$( get_gid "${group}" )"
211 fail "can not allocate a GID for group '%s'\n" "${group}"
220 local group="${1}"
226 gid="$( generate_gid "${group}" )"
229 members=$(get_members "$group")
231 sed -i --follow-symlinks -e '/^'"${group}"':.*/d;' "${GROUP}"
232 printf "%s:x:%d:%s\n" "${group}" "${gid}" "${members}" >>"${GROUP}"
236 sed -i --follow-symlinks -e '/^'"${group}"':.*/d;' "${GSHADOW}"
237 printf "%s:*::\n" "${group}" >>"${GSHADOW}"
270 local group="${2}"
276 -e 's/^('"${group}"':.*:)(([^:]+,)?)'"${username}"'(,[^:]+*)?$/\1\2\4/;' \
277 -e 's/^('"${group}"':.*)$/\1,'"${username}"'/;' \
297 local group="${3}"
307 check_user_validity "${username}" "${uid}" "${group}" "${gid}"
319 _gid="$( get_gid "${group}" )"
370 local username uid group gid passwd home shell groups comment
394 read username uid group gid passwd home shell groups comment <<<"${line}"
396 add_one_group "${group}" "${gid}"
401 read username uid group gid passwd home shell groups comment <<<"${line}"
403 add_one_group "${group}" "${gid}"
410 read username uid group gid passwd home shell groups comment <<<"${line}"
425 read username uid group gid passwd home shell groups comment <<<"${line}"
428 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \
434 read username uid group gid passwd home shell groups comment <<<"${line}"
437 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \