From e9c2831baebf8948656a28f5808d5f78e4dbc0bb Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 8 Jul 2011 17:12:18 +0200 Subject: [PATCH] filesystems: configure /proc/bus/usb with permissions for sysadmin group as required by VirtualBox --- postplug.d/10filesystems | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postplug.d/10filesystems b/postplug.d/10filesystems index 16b5267..e7080db 100644 --- a/postplug.d/10filesystems +++ b/postplug.d/10filesystems @@ -3,7 +3,7 @@ # filesystems - filesystems plugin for postplug # Copyright (c) 2004-2007 by Davide Madrisan # Copyright (c) 2007 by Stefano Cotta Ramusino -# Copyright (c) 2009 by Silvan Calarco +# Copyright (c) 2009-2011 by Silvan Calarco if [ $UID != 0 ]; then echo "$0: must be superuser." >&2 @@ -155,7 +155,7 @@ if [ "$FS_VFS_UPDATE" != no ]; then # probe for USB if the entry were not present in /etc/fstab if [ -d /proc/bus/usb ]; then grep -q "/proc/bus/usb" $fstab 2>/dev/null || - { echo "usbfs /proc/bus/usb usbfs defaults 0 0" >> $fstab + { echo "usbfs /proc/bus/usb usbfs devgid=30,devmode=664 0 0" >> $fstab logmsg "$me" $"added an entry for \`usbfs' in $fstab" mount /proc/bus/usb &>/dev/null; } fi