i've got problems with permissions to my usb camera. only root can connect to it. i see, that /etc/hotplug/usb/usbcam cointains the following code: if [ -f /var/run/console.lock ] then CONSOLEOWNER=`cat /var/run/console.lock` elif [ -f /var/lock/console.lock ] then CONSOLEOWNER=`cat /var/lock/console.lock` else CONSOLEOWNER= fi if [ -n "$CONSOLEOWNER" ] then chmod 0000 "${DEVICE}" chown "$CONSOLEOWNER" "${DEVICE}" chmod 0600 "${DEVICE}" fi however i havn't got /var/run/console.lock nor /var/lock/console.lock - besides - shouldn't permissions be 660 instead of 600? i'm using udev-056 and i'm starting X with kdm (if that matters). i'm also using gphoto2 to connect to camera (it's not mass-storage compatible)
What package provides this file?
Similar problems here (w Canon Digital Ixus) the device can only be used by the root user. This script is provided by libgphoto2: # epm -qf /etc/hotplug/usb/usbcam libgphoto2-2.1.5 Permissions of the usb device (here /proc/bus/usb/001/011) are set to user only: -rw-r--r-- 1 root root 52 7. Mai 09:37 011 Also the lock files do not exist on my system. A bit of debugging clearly shows that therefore CONSOLEOWNER variable is always empty so the if statement is never entered and the device permissions will never be updated... (As workaround I added these two lines just after the if statement in /etc/hotplug/usb/camera a bit ugly but at least works...) ... fi chown ds:users "${DEVICE}" chmod 0640 "${DEVICE}" fi
Not a hotplug package issue, closing.