summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2014-05-08 14:51:12 +0200
committerJonathan Bauer2014-05-08 14:51:12 +0200
commitf4f43ba1001236ae7fa844ec4a2f33c39bc50c3b (patch)
treed65054aa0816211560ea66341a90c3f17630cc97 /remote
parent[openstack] added REQUIRED_*_PACKAGES for ubuntu 14.04 (diff)
parent[vbox] add PAM user to vboxusers group on session open (little corr.) (diff)
downloadtm-scripts-f4f43ba1001236ae7fa844ec4a2f33c39bc50c3b.tar.gz
tm-scripts-f4f43ba1001236ae7fa844ec4a2f33c39bc50c3b.tar.xz
tm-scripts-f4f43ba1001236ae7fa844ec4a2f33c39bc50c3b.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open b/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open
index d3cc4077..f272fba1 100755
--- a/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open
+++ b/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open
@@ -14,7 +14,7 @@ if [ "x$PAM_SERVICE" != "xsu" -a "x$PAM_SERVICE" != "xsudo" ]; then
fi
# add user to vboxusers group, if it exists
-if id -g vboxusers; then
+if getent group vboxusers; then
addgroup "$PAM_USER" vboxusers
fi