Skip to content

Instantly share code, notes, and snippets.

@Danukeru
Created September 6, 2016 18:13
Show Gist options
  • Select an option

  • Save Danukeru/f8aea55cd4ec15c6ad80b9be803c2ddd to your computer and use it in GitHub Desktop.

Select an option

Save Danukeru/f8aea55cd4ec15c6ad80b9be803c2ddd to your computer and use it in GitHub Desktop.
ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'"
@Danukeru
Copy link
Author

Danukeru commented Sep 6, 2016

Place in /etc/udev/rules.d/ to blacklist all usb devices per default

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