I Cannot get this password prompt I wrote in Perl to automatically run when I insert my USB. I guess my UDEV rules are wrong. I made a file inside of the /etc/udev/rules.d/ directory, named it 50-udev.rules and added this
SUBSYSTEM=="usb", ACTION=="add", KERNEL=="sd??", RUN+="/path/to/program.pl",
but it will not work.