diff options
author | Jonathan Bauer | 2018-05-22 12:30:44 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-05-22 12:30:44 +0200 |
commit | 6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e (patch) | |
tree | e13352a4573c36458c5a707014fe1090a8ca72ed | |
parent | [sshd] only allow root per ssh (diff) | |
download | mltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.tar.gz mltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.tar.xz mltk-6fb7c056ff3b8b3ac59cd84b305f9af8dbd9620e.zip |
[vbox-src] create vboxusers before chown stuff to it
mrgrgglgllgllgllglgggg
-rwxr-xr-x | core/modules/vbox-src/data/opt/openslx/scripts/systemd-vbox_env | 6 |
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 |