Hi,
You can setuid root the script (see http://en.wikipedia.org/wiki/
Setuid ). Of course there are potential security problems involved
with this solution, but I will let you weight those out. :)
--
Delio
On 3/01/2009, at 3:32 PM, Phill Coxon wrote:
I have a tricky /proc issue.
I recently bought a ThinkPad SL500.
As ThinkPad enthusiasts will tell you (while ranting about how the
ThinkPad brand has been forever tarnished) the SL500 is not really a
ThinkPad as it has IdeaPad firmware.
As a result there are a few issues running Linux on it.
One major issue is that the screen brightness up / down keys are
reversed and don't work properly.
So when logging in I have to run a script that sets a reasonable value
(i.e.: 90%) for the screen brightness to:
/proc/acpi/video/VGA/LCDD/brightness
Trouble is that /proc/acpi/video/VGA/LCDD/brightness is set to root
only
write so every time I boot I have to use sudo to change the file
permissions and then sudo again to set the value, all while working
on a
very dark, barely legible screen.
I want to run a script that automatically sets the correct brightness
when booting.
Can anyone suggest where to do this so that I don't have to manually
sudo to change permissions etc first?
It's a pain in but butt as a manual process - I'd like to automate it.
Thanks!