Hi,
I need to access an USB device with a non-root user within a jail. I had similar issues with FreeNAS and now installed a fresh FreeBSD 9.3.
When running
The device required for my setup is:
This is a USB device connecting to a home automation system.
My permissions are as follows:
I've modified the devfs.rules:
and rc.conf:
If I'm now running
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 devfs config?
Thanks.
Moellinger
I need to access an USB device with a non-root user within a jail. I had similar issues with FreeNAS and now installed a fresh FreeBSD 9.3.
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)
This is a USB device connecting to a home automation system.
My permissions are as follows:
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 eib. I'm getting 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 devfs config?
Thanks.
Moellinger