Lines Matching refs:gid

96     local gid="${1}"
98 awk -F: -v gid="${gid}" \
125 local gid="${4}"
128 _group="$( get_group "${gid}" )"
139 if [ ${gid} -lt -1 -o ${gid} -eq 0 ]; then
140 fail "invalid gid '%d' for '%s'\n" ${gid} "${username}"
141 elif [ ${gid} -ne -1 ]; then
145 ${gid} "${username}" "${_group}"
151 if [ -n "${_gid}" ] && [ ${_gid} -ne ${gid} ]; then
153 "${group}" "${username}" ${_gid} ${gid}
159 if [ -n "${_ugid}" ] && [ ${_ugid} -ne ${gid} ]; then
161 "${username}" ${_ugid} ${gid}
201 local gid
203 gid="$( get_gid "${group}" )"
204 if [ -z "${gid}" ]; then
205 for(( gid=MIN_GID; gid<=MAX_GID; gid++ )); do
206 if [ -z "$( get_group "${gid}" )" ]; then
210 if [ ${gid} -gt ${MAX_GID} ]; then
214 printf "%d\n" "${gid}"
221 local gid="${2}"
225 if [ ${gid} -eq -1 ]; then
226 gid="$( generate_gid "${group}" )"
232 printf "%s:x:%d:%s\n" "${group}" "${gid}" "${members}" >>"${GROUP}"
298 local gid="${4}"
307 check_user_validity "${username}" "${uid}" "${group}" "${gid}"
370 local username uid group gid passwd home shell groups comment
394 read username uid group gid passwd home shell groups comment <<<"${line}"
395 [ ${gid} -ge 0 ] || continue # Automatic gid
396 add_one_group "${group}" "${gid}"
401 read username uid group gid passwd home shell groups comment <<<"${line}"
402 [ ${gid} -eq -1 ] || continue # Non-automatic gid
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}" \