Skip to content
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

Avoid world-writable devices in udev rules #525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions f3discovery/src/03-setup/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ sudo vi /etc/udev/rules.d/99-openocd.rules
With the contents:
``` text
# STM32F3DISCOVERY - ST-LINK/V2.1
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE:="0666"
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE:="0664"
```
#### For older devices with OPTIONAL USB <-> FT232 based Serial Module

Expand All @@ -153,7 +153,7 @@ sudo vi /etc/udev/rules.d/99-openocd.rules
With the contents:
``` text
# FT232 - USB <-> Serial Converter
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE:="0666"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE:="0664"
```

### Reload the udev rules with:
Expand Down
2 changes: 1 addition & 1 deletion microbit/src/03-setup/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ cat /etc/udev/rules.d/99-microbit.rules

``` text
# CMSIS-DAP for microbit
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="664"
```

Then reload the udev rules with:
Expand Down