Make sudoers work with only certain parameter?

Posted by Evan on Ask Ubuntu See other posts from Ask Ubuntu or by Evan
Published on 2012-12-17T10:35:11Z Indexed on 2012/12/17 11:13 UTC
Read the original article Hit count: 224

Filed under:

I'm trying to make my sudoers file allow a user to adjust the backlight without having to enter in the password. This is what I have:

# User alias specification
Cmnd_Alias ADJBL = /usr/bin/su -c "echo 150 >/sys/class/backlight/intel_backlight/brightness"

# For our user..
ouruser HOME=(root) NOPASSWD:ADJBL

.. but it doesn't seem to be working, I still get prompted for the password when I try and run that command with sudo. Apparently there is something I'm missing here, any ideas?

© Ask Ubuntu or respective owner

Related posts about sudo