Bug#595525: libhamlib2: hamlib requires sudo for USB kit radios
Package: libhamlib2
Version: 1.2.11-1
Severity: normal
Tags: patch
Hamlib-based apps require the use of sudo for the USB kit radios
(elektor507, si570avrusb, dwt) which have an embedded "generic"
USB serial converter (FTDI, AVR USBasp):
$ rigctl -m 2507
rig_open: error = IO error
$ sudo rigctl -m 2507
Rig command:
Specifically, hamlib's attempt to usb_detach_kernel_driver_np()
fails because of root-ownership of the USB device node (e.g.
/dev/bus/usb/005/004).
Attached udev rules file enables ACL for the node when the device
is attached so that sudo is no longer required.
#
# Enable ACL_MANAGE for common embedded USB-serial converters so that
# applications which call usb_detach_kernel_driver_np() won't need sudo.
#
# This file was installed by the package 'libhamlib2'
# FTDI USB Serial Device converter
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", ENV{ACL_MANAGE}="1"
# VOTI USBasp AVR Programmer
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="05dc", ENV{ACL_MANAGE}="1"
Reply to: