I was thinking of a program that would grant access to the raspberry pi usb port if the user was authorized and disable it if not. Most of the links I found are regarding the usb port supply, while it is conducive i think it is much safer if the transmit and receive pin at the usb port can be toggled. Thank you in advance!

  • Why are you trying to do this? Will these users have physical access to the Pi, its' connected devices or the SD card? Commented Feb 19, 2016 at 19:26
  • We're not sure yet if it can be done. There's some stuff that's still not released by Broadcom.
    – Aloha
    Commented Feb 20, 2016 at 4:16
  • I was working with a prototype of a security device, and I would like the firmware to decide for itself if it would allow the use of usb port accord to its conditions and i got an idea of using external transistors/gates to switch rx/tx, but i was just trying to find a shorter way around without using my gpio Commented Feb 20, 2016 at 18:10

1 Answer 1


Just like this question/answer suggests, there is no way to cut the power or the TX/RX on the USB ports with just software. You will need to add a transistor and do some fancy wiring, which is all described in the answer to that question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.