-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev rule to allow non-root access to libusb devices being ignored/not working #8502
Comments
@nebrius if you get |
Thanks @elsaco, that got it! Starting the service then reloading the rules now allows me to access USB devices as non-root. |
This works, but I get the following trying to start the service from terminal. Is there a way to automate the start of udev service.
|
I'm trying to connect a card reader and it's also not in /dev, although it has a mount point
|
Version
Microsoft Windows [Version 10.0.22000.675]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
On the Windows host side:
On the Linux container side:
Repro Steps
Create a udev rule with the following content at
/etc/udev/rules.d/99-usbftdi.rules
:Restart Ubuntu with
wsl --terminate ubuntu
to reload the rules.Note: normally the way to reload udev rules is with
sudo udevadm control --reload-rules
, however that command fails in WSL withFailed to send reload request: No such file or directory
. Perhaps related?Expected Behavior
non-root users can open this device
Actual Behavior
Serial port error: Error: Permission denied, cannot open /dev/ttyUSB0
Note: I can still open the device just fine using sudo.
Diagnostic Logs
The text was updated successfully, but these errors were encountered: