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!
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.