Skip to content

Instantly share code, notes, and snippets.

@csylvain
Forked from monkbroc/50-particle.rules
Last active February 12, 2018 00:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csylvain/2c354b2565aea35bf9fff426680a8067 to your computer and use it in GitHub Desktop.
Save csylvain/2c354b2565aea35bf9fff426680a8067 to your computer and use it in GitHub Desktop.
Udev rules for Particle devices
# UDEV Rules for Particle boards
#
# This will allow reflashing with DFU-util without using sudo
#
# The latest version of this file may be found at:
# https://gist.github.com/monkbroc/b283bb4da8c10228a61e
#
# This file must be placed at:
#
# /etc/udev/rules.d/50-particle.rules (preferred location)
#
# To install, type this command in a terminal:
# sudo cp 50-particle.rules /etc/udev/rules.d/50-particle.rules
#
# After this file is installed, physically unplug and reconnect the
# Particle device.
#
# Core
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="607[df]", GROUP="plugdev", MODE="0666"
# Photon/P1/Electron
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2b04", ATTRS{idProduct}=="[cd]00?", GROUP:="plugdev", MODE="0660"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and manage access using standard unix groups.
#
#
# If using USB Serial you get a new device each time (Ubuntu >9.10)
# eg: /dev/ttyACM0, ttyACM1, ttyACM2, ttyACM3, ttyACM4, etc
# apt-get remove --purge modemmanager (reboot may be necessary)
#
# CREDITS:
#
# Edited by Julien Vanier
#
# This file is derived from the Teensy UDEV rules
# http://www.pjrc.com/teensy/49-teensy.rules
#
@csylvain
Copy link
Author

/dev/ttyACM* was stubbornly remaining owned by group 'dialout' until rule was changed slightly. now group ownership is 'plugdev'. the default account membership (Ubuntu 17.10) includes plugdev but not dialout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment