diff options
author | Manuel Schneider | 2014-07-10 18:04:31 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-07-10 18:04:31 +0200 |
commit | 26370fb1e5639a6bb11457a8adac5451e448849c (patch) | |
tree | 83532870e5ab15942261e33f5f60fc6bba9b99aa /remote | |
parent | [pvs2] Add a startup script which starts pvs if vmchooser sets the appropriat... (diff) | |
parent | [useradd.inc] GID is the 4th column not 3rd (diff) | |
download | tm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.tar.gz tm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.tar.xz tm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.zip |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote')
-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} } |