Created
September 6, 2016 18:13
-
-
Save Danukeru/f8aea55cd4ec15c6ad80b9be803c2ddd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place in /etc/udev/rules.d/ to blacklist all usb devices per default