I'm trying to create a udev rule to unlock my computer when I connect my phone by USB. I could not find that that rule was being ran and so I tried a much simpler rule. This is the rule (anonymized) :
KERNEL=="sd?1", ATTRS{idVendor}=="****", ATTRS{idProduct}=="****", SYMLINK+="phone", RUN+="touch /home/user/udev.touch"
I know that the rule is running because the link phone -> sdc1
is being created but the file is not being created. Are there security setting that I have to enable for the file to run an external program?
/usr/bin/touch