How can I check using a script that CD-drive is connected to USB port?
I don't want to allow cd-rom to be used as usb device under any circumstance in my system. Is there a way to check this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I would use USBGuard for this,
The USBGuard software framework helps to protect your computer against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
I would then create a whitelist of device IDs that are allowed to be used, and block everything else.