Provide more secure udev example.

This commit is contained in:
Simon Josefsson 2018-10-02 14:11:17 +02:00
parent 9d509a8130
commit eb295a83f9
No known key found for this signature in database
GPG key ID: 860B7FBB32F8119D

View file

@ -41,13 +41,18 @@ the Tomu bootloader. Most package managers have some form of
sudo apt-get install dfu-util
````
Create `/etc/udev/rules.d/10-tomu.rules` and populate it with the following:
Create `/etc/udev/rules.d/10-tomu.rules` and populate it with the following (giving everyone on your system write access to your device):
````udev
ATTRS{idProduct}=="70b1", ATTRS{idVendor}=="1209", MODE="777"
````
(Note: you can give it a more restrictive mode if you also give it a group that you're in)
You can give it a more restrictive mode if you also give it a group that you're in, for example:
````udev
ATTRS{idProduct}=="70b1", ATTRS{idVendor}=="1209", MODE="664", GROUP="plugdev"
````
### Fedora