I'm running Ubuntu Server and have a python script I am trying to have automatically run when a USB drive is plugged in, however the script is not run when usbmount executes its run-parts command. If I run run-parts myself the script runs fine. I have put in some logging into my bash script and it shows that the script is actually being called when a usb drive is plugged in, it just doesn't execute my python script.
I've been pulling my hair out over this all day, I'm thinking maybe there's a permissions problem that is not allowing usbmount to execute the python script, but if there is I can't figure it out.
Clarification: I have a shell script in /etc/usbmount/mount.d that logs when it is called and then calls my python script.