From bdabc3011cbf356bcaec6a19c905e4a721fa6f15 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 5 May 2014 17:28:33 +0200 Subject: [vbox] add PAM user to vboxusers on session open --- remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_open | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'remote/modules/pam/data') 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 519aea55..d3cc4077 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 @@ -13,5 +13,10 @@ if [ "x$PAM_SERVICE" != "xsu" -a "x$PAM_SERVICE" != "xsudo" ]; then fi fi +# add user to vboxusers group, if it exists +if id -g vboxusers; then + addgroup "$PAM_USER" vboxusers +fi + exit 0 -- cgit v1.2.3-55-g7522