I can successfully mount my usb memory using the udev rules, however I am unable to unmount it as an ordinary user. I have asked on the arch forum,
https://bbs.archlinux.org/viewtopic.php?id=148530, but I don´t expect any useful input from them since the automount rules aren't supported in vanilla arch.
My application (python/nginx/tornado) detects newly mounted usb memories, copies all files on the memory, and then I want to programatically unmount the usb in order to unpower the LED on the usb memory. This will tell the operator that copying is done and it is safe to unplug the usb memory. The application is running under user id "http". I could change the udev rules to mount the device as user "http", but any such change will conflict with future updates of the package.
Grateful for any help on this matter.