Hi, I am currently hardening my Kubuntu 12.10 OS and I want to run a shell script that automatically runs when my usb is plugged in. It should ask for authentication/authorization for my usb when its plugged in and deny ANY other device. So basically what I want is a lockdown of all external media except those which I have specified to be authenticated when they're plugged in. I've seen an example of running a script when a usb device is plugged in but I'm not sure how to incorporate a messagebox style prompt asking the user for a password and lockdown other devices. To me this is very challenging as I'm still relatively new to Linux and I probably wouldn't know how to do it on an OS I am familiar with.
Thanks in advance.