Lines Matching refs:uid
88 local uid="${1}"
90 awk -F: -v uid="${uid}" \
123 local uid="${2}"
131 _username="$( get_username "${uid}" )"
165 if [ ${uid} -lt -1 -o ${uid} -eq 0 ]; then
166 fail "invalid uid '%d' for '%s'\n" ${uid} "${username}"
167 elif [ ${uid} -ne -1 ]; then
171 ${uid} "${username}" "${_username}"
177 if [ -n "${_uid}" ] && [ ${_uid} -ne ${uid} ]; then
179 "${username}" ${_uid} ${uid}
250 local uid
252 uid="$( get_uid "${username}" )"
253 if [ -z "${uid}" ]; then
254 for(( uid=MIN_UID; uid<=MAX_UID; uid++ )); do
255 if [ -z "$( get_username "${uid}" )" ]; then
259 if [ ${uid} -gt ${MAX_UID} ]; then
263 printf "%d\n" "${uid}"
296 local uid="${2}"
307 check_user_validity "${username}" "${uid}" "${group}" "${gid}"
310 if [ ${uid} -eq -1 ]; then
311 uid="$( generate_uid "${username}" )"
346 "${username}" "${uid}" "${_gid}" \
364 printf "chown -h -R %d:%d '%s'\n" "${uid}" "${_gid}" "${TARGET_DIR}/${home}"
370 local username uid group gid passwd home shell groups comment
394 read username uid group gid passwd home shell groups comment <<<"${line}"
401 read username uid group gid passwd home shell groups comment <<<"${line}"
410 read username uid group gid passwd home shell groups comment <<<"${line}"
425 read username uid group gid passwd home shell groups comment <<<"${line}"
427 [ ${uid} -ge 0 ] || continue # Automatic uid
428 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \
434 read username uid group gid passwd home shell groups comment <<<"${line}"
436 [ ${uid} -eq -1 ] || continue # Non-automatic uid
437 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \