moellinger
Cadet
- Joined
- Apr 8, 2014
- Messages
- 6
Hi,
I do need to access an usb device with a non-root user within a jail.
When running usbconfig as root in the jail, I see all the usb devices connected.
The device required for my setup is:
My permissions are as followed:
I've modified the devfs.rules
and rc.conf:
If I'm now running usbconfig with user I'm geeting the following output:
I'm able to access the usb device as root without any issues but not with any other user. User eib has been added to the operator group.
Is there anything wrong with my defs config?
I do need to access an usb device with a non-root user within a jail.
When running usbconfig as root in the jail, I see all the usb devices connected.
The device required for my setup is:
Code:
ugen1.3: <KNX-USB Data Interface Gira Giersiepen GmbH Co. KG> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (50mA)
My permissions are as followed:
Code:
root@knx:/dev # ll ugen1.3 lrwxr-xr-x 1 root wheel 9 Dec 8 10:19 ugen1.3@ -> usb/1.3.0
I've modified the devfs.rules
Code:
root@knx:/dev # cat /etc/devfs.rules [system=10] add path 'usbctl' mode 660 group operator add path 'usb/*' mode 660 group operator add path 'ugen*' mode 0660 group operator
and rc.conf:
Code:
root@knx:/dev # cat /etc/rc.conf devfs_system_ruleset="system"
If I'm now running usbconfig with user I'm geeting the following output:
Code:
root@knx:/dev # sudo -u eib usbconfig No device match or lack of permissions.
I'm able to access the usb device as root without any issues but not with any other user. User eib has been added to the operator group.
Is there anything wrong with my defs config?