Mokomaze as non-root
Rask Ingemann Lambertsen
rask at sygehus.dk
Fri May 8 21:07:53 CEST 2009
On Wed, May 06, 2009 at 10:59:20PM -0500, The Digital Pioneer wrote:
> Not sure what all issues you're experiencing, but the accelerometers are
> probably root:root access only (they are on mine, SHR-unstable), if that's
> your problem. You can probably chmod them manually, but I'm sure you can mod
> some conf somewhere to change it. Not sure what...
Comparing SHR unstable (from about 3 weeks ago)
/etc/udev/rules.d/permissions.rules
# input devices
KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \
MODE="0664", GROUP="video"
KERNEL=="js[0-9]*", MODE="0664"
KERNEL=="lirc[0-9]*", GROUP="video"
with Debian /lib/udev/rules.d/91-permissions.rules
# input devices
KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \
MODE="0664", GROUP="video"
KERNEL=="js[0-9]*", MODE="0664"
KERNEL=="event[0-9]*", ENV{ID_CLASS}=="joystick", \
MODE="0664", GROUP="audio"
KERNEL=="lirc[0-9]*", GROUP="video"
there's a difference in the input device section and indeed I have some
input devices with group audio and read permission for everybody:
# ls -l /dev/input/
total 0
crw-rw---- 1 root root 13, 64 May 5 11:39 event0
crw-rw---- 1 root root 13, 65 May 5 11:39 event1
crw-rw-r-- 1 root audio 13, 66 May 5 11:39 event2
crw-rw-r-- 1 root audio 13, 67 May 5 11:39 event3
crw-rw---- 1 root root 13, 68 May 5 11:39 event4
crw-rw---- 1 root root 13, 63 May 5 11:39 mice
--
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year
More information about the community
mailing list