Lines Matching refs:uid
98 local uid="${1}"
100 awk -F: -v uid="${uid}" \
133 local uid="${2}"
141 _username="$( get_username "${uid}" )"
179 if [ ${uid} -lt -2 -o ${uid} -eq 0 ]; then
180 fail "invalid uid '%d' for '%s'\n" ${uid} "${username}"
181 elif [ ${uid} -ge 0 ]; then
185 ${uid} "${username}" "${_username}"
191 if [ -n "${_uid}" ] && [ ${_uid} -ne ${uid} ]; then
193 "${username}" ${_uid} ${uid}
274 local uid
276 uid="$( get_uid "${username}" )"
277 if [ -z "${uid}" ]; then
278 for(( uid=minuid; uid<=maxuid; uid++ )); do
279 if [ -z "$( get_username "${uid}" )" ]; then
284 if [ ${uid} -gt ${maxuid} ]; then
288 printf "%d\n" "${uid}"
321 local uid="${2}"
332 check_user_validity "${username}" "${uid}" "${group}" "${gid}"
336 if [ ${uid} -eq ${AUTO_USER_ID} ]; then
337 uid="$( generate_uid "${username}" $FIRST_USER_UID $LAST_USER_UID )"
338 elif [ ${uid} -eq ${AUTO_SYSTEM_ID} ]; then
339 uid="$( generate_uid "${username}" $FIRST_SYSTEM_UID $LAST_SYSTEM_UID )"
374 "${username}" "${uid}" "${_gid}" \
392 printf "chown -h -R %d:%d '%s'\n" "${uid}" "${_gid}" "${TARGET_DIR}/${home}"
398 local username uid group gid passwd home shell groups comment
423 read -r username uid group gid passwd home shell groups comment <<<"${line}"
431 read -r username uid group gid passwd home shell groups comment <<<"${line}"
443 read -r username uid group gid passwd home shell groups comment <<<"${line}"
446 if [ ${uid} -le 0 ]; then
447 auto_id=${uid}
448 elif [ ${uid} -le ${LAST_SYSTEM_UID} ]; then
466 read -r username uid group gid passwd home shell groups comment <<<"${line}"
469 [ ${uid} -ge 0 ] || continue # Automatic uid
470 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \
476 read -r username uid group gid passwd home shell groups comment <<<"${line}"
479 [ ${uid} -lt 0 ] || continue # Non-automatic uid
480 add_one_user "${username}" "${uid}" "${group}" "${gid}" "${passwd}" \