Hello, it would help me to know if it is possible to block usb ports in linux red hat through a script?

a client is looking for a port blocking solution on linux redhat, with Kace DA it was not possible because it only supports windows, however, maybe usb port blocking could be done with a script

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Nico_K 1 year ago
Red Belt

you have multiple options, and all depending on the systems you use and therefore which USB kernel modules you use (you need to do so, or you cannot block it if your kernel contains all the drivers)
This can be a real pain in where no sun shines if you have many different systems. (from a hardware perspective)
This could be helpful (and may be different on diffent systems but is easily scriptable)

Therefore I suggest you make yourself familiar with usbguard.
Here you have a nice blog from Red Hat which should answer all of your questions:

Posted by: miguel lima 1 year ago
White Belt

Thanks Nico

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ