diff options
Diffstat (limited to 'remote/includes/useradd.inc')
-rw-r--r-- | remote/includes/useradd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/includes/useradd.inc b/remote/includes/useradd.inc index 5d7d405d..a8f407f7 100644 --- a/remote/includes/useradd.inc +++ b/remote/includes/useradd.inc @@ -44,7 +44,7 @@ get_gid_for_user() { [ $# -ne 1 ] && perror "get_gid_for_user fail. want 1 argument." [ -z "${_PASSWD}" ] && perror "passwd file not set." - local _GID=$(grep -E "^$1:[^:]*:[^:]*:[0-9]+:" "${_PASSWD}" | head -1 | awk -F ':' '{print $3}') + local _GID=$(grep -E "^$1:[^:]*:[^:]*:[0-9]+:" "${_PASSWD}" | head -1 | awk -F ':' '{print $4}') echo ${_GID} } |