summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-22 12:30:44 +0200
committerJonathan Bauer2018-05-22 12:30:44 +0200
commit6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e (patch)
treee13352a4573c36458c5a707014fe1090a8ca72ed
parent[sshd] only allow root per ssh (diff)
downloadmltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.tar.gz
mltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.tar.xz
mltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.zip
[vbox-src] create vboxusers before chown stuff to it
mrgrgglgllgllgllglgggg
-rwxr-xr-xcore/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env b/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env
index 35778e6b..6e669a8a 100755
--- a/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env
+++ b/core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env
@@ -38,6 +38,9 @@ for MOD in *; do
fi
done
+# check/create vboxusers group
+getent group vboxusers || addgroup -S vboxusers
+
# set their permissions
chown root:vboxusers /dev/vboxdrv
chmod 666 /dev/vboxdrv
@@ -47,9 +50,6 @@ chmod 666 /dev/vboxdrvu
# create required standard directories
mkdir -p "/tmp/virt/virtualbox" -m 1777
-# check/create vboxusers group
-getent group vboxusers || addgroup -S vboxusers
-
# reload udev rules since aufs'ing the layer on top do not trigger its inotify watch
udevadm control --reload