View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#176
Originally Posted by Alan_Peery View Post
You want edit /etc/sudoers, and add an appropriate line. Be careful, this is the file that makes "sudo gainroot" and a lot of other things work.
And me I guess you should then put the 'sudo' to the beginning of the line (or even call 'su' instead). Piping the empty output of a not allowed command to 'sudo gainroot' seems quite useless to me.

sudo echo 2 > /sys/class/backlight/acx565akm/brightness