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
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: