Advertisement
silver2row

84-noroot

Mar 19th, 2022
1,575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. # /etc/udev/rules.d/85-gpio-noroot.rules
  2. #
  3. # Corrects sys GPIO permissions on the BB so non-root users in the gpio group can manipulate bits
  4. #
  5.  
  6. ###needed for gpioinfo and friends...
  7. ###Before
  8. ###debian@bbb-pwr01-ser09:~$ ls -lha /dev/gpiochip*
  9. ###crw-rw---- 1 root root 254, 0 Jul  9 00:01 /dev/gpiochip0
  10. ###crw-rw---- 1 root root 254, 1 Jul  9 00:01 /dev/gpiochip1
  11. ###crw-rw---- 1 root root 254, 2 Jul  9 00:01 /dev/gpiochip2
  12. ###crw-rw---- 1 root root 254, 3 Jul  9 00:01 /dev/gpiochip3
  13. ###After
  14. ###debian@bbb-pwr01-ser09:~$ ls -lha /dev/gpiochip*
  15. ###crw-rw---- 1 root gpio 254, 0 Jul  9 00:01 /dev/gpiochip0
  16. ###crw-rw---- 1 root gpio 254, 1 Jul  9 00:01 /dev/gpiochip1
  17. ###crw-rw---- 1 root gpio 254, 2 Jul  9 00:01 /dev/gpiochip2
  18. ###crw-rw---- 1 root gpio 254, 3 Jul  9 00:01 /dev/gpiochip3
  19.  
  20. KERNEL=="gpiochip*", SUBSYSTEM=="gpio", MODE="0660", GROUP="gpio"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement