From 9ca20fb8c0da2571f1c4ae878deaf80ffffffa6a Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 6 May 2014 14:40:58 +0200 Subject: [vbox] add PAM user to vboxusers group on session open (little corr.) --- remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote') 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 -- cgit v1.2.3-55-g7522