Package: python-nxt
Version: 2.2.2-2
Severity: important
The udev rules for Lego Mindstorms devices in
/lib/udev/rules.d/70-lego.rules do not work for logged in users if the
user information originate from LDAP (ie users that can not be a member
of the plugdev group).
I've investigated and got some help on #debian-devel, and the way this
is supposed to work with logind from systemd is that some file system
ACLs should grant access to the device in /dev/bus/usb/* when the device
is logged in. The rules to set this up is in
/lib/udev/rules.d/70-uaccess.rules. I did not find any relevant rule
for Lego Mindstorms, and suspect this thus is best solved by using
TAG+="uaccess".
Please modify /lib/udev/rules.d/70-lego.rules to include a setting like
this:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0694", GROUP="plugdev", MODE="0660",
TAG+="uaccess"
I lack the hardware right now to verify using 'udevadm info
/dev/bus/usb/...' that this set the correct tags for the device.
Perhaps it would be a good idea to set ENV{ID_LEGO_MINDSTORMS}="1" as
well, to allow common udev rules to be applied to all mindstorms dongles
in the future?
--
Happy hacking
Petter Reinholdtsen