picandies wrote: ↑
Thu Feb 21, 2019 5:48 pm
Thanks for the note about these rules.....however the python program need to turn the access on/off...would this change all flash sticks access (desired), from within python?
No idea to be honest as I’ve done very little with these rules - they are just plain text files so Python could write / rewrite them and then ‘udevadm control --reload‘ will handle the NEXT insert.
If the USB are ruled so as not to activate any auto run programs and you have no access to a command line without a password / user account then it matters not who opens the case and plugs a USB stick in.
If no one comes up with an answer I’d look at the udev functionality in Debian or the man udev on the Pi.