I have a udev rule that runs a script when a certain USB stick is plugged in. The script is running (I echo "woop" >> /tmp/usblog as part of the script and it appears as expected) but the mount command within the script is not getting run.
If I run the script as root it mounts the drive without any problems. However when run from udev, it does not (I did some reading and was under the impression that udev ran commands as root). I haven't seen any trace of failure in /var/log/messages and /var/log/syslog (are there any other places I could look?) so does anyone have any idea why it wont work?
Thanks
Chris