Install script needs root access - is this possible?
Posted: Fri Sep 28, 2012 5:04 am
I am currently working on a new Amahi App called MediaRip to allow servers to rip audio-cd's and dvd's.
There is one thing which i would like to add and that is a new udev rule to automatically trigger on an inserted disc in a cd/dvd-drive. To make this happen i need to add the following line to a new file in /etc/udev/rules.d/
echo 'SUBSYSTEM=="block", KERNEL=="sr0", RUN+="/usr/local/bin/udevdisc", OPTIONS="last_rule"'
The /etc/udev directories are owned by root and so the install script can not just do this. Is there a way around this, or does this functionality need to be added in a different way. I am planning to create a web interface when everything is working, so i could add a setting there. But this is really a last alternative.
There is one thing which i would like to add and that is a new udev rule to automatically trigger on an inserted disc in a cd/dvd-drive. To make this happen i need to add the following line to a new file in /etc/udev/rules.d/
echo 'SUBSYSTEM=="block", KERNEL=="sr0", RUN+="/usr/local/bin/udevdisc", OPTIONS="last_rule"'
The /etc/udev directories are owned by root and so the install script can not just do this. Is there a way around this, or does this functionality need to be added in a different way. I am planning to create a web interface when everything is working, so i could add a setting there. But this is really a last alternative.