Grub Rescue
http://www.sorgonet.com/linux/grubrestore/
http://fedoranews.org/contributors/bob_kashani/grub/
Install from USB drive: works from Windows and linux
http://unetbootin.sourceforge.net/
How to run script with root privileges by normal user
C code:
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
//#include <iostream>
//using namespace std;
int main(int argc, char** argv) {
system("echo 0 > /sys/devices/platform/acer-wmi/leds/acer-wmi::mail/brightness");
return (EXIT_SUCCESS);
}
then gcc this code as root, then set the SUID bit and the SGID bit to 1 of the executable.