<div class="gmail_quote">On Mon, Dec 27, 2010 at 00:52, Alessandro Boggiano <span dir="ltr"><<a href="mailto:boggiano@gmail.com">boggiano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>I'd like to permit to users to scaling the cpu frequency <br>using the applet cpu scaling inside gnome without typing root password.<br>How can I do it?<br></blockquote><div><br><br><font size="2"><font face="verdana,sans-serif">If that can be done with a command, add the user and command to sudoers with the NOPASSWD option.<br>
<br>
#visusdo<br>
add the following line:<br>
user ALL=(ALL) NOPASSWD:command<br>
<br>
then your user can use "sudo command" <br><br>You may also grant this access to a group. It may be better to grant the access in sudoers to a group, then add individuals to the group as needed.<br><br>"Normally" with sudo, the user will be prompted for their own password, but if you want no passwd prompt at all, use the NOPASSWD option as shown above<br>
<br>Something else to consider adding to sudoers...<br>Defaults passprompt = "[sudo] Please enter the password %p: "<br><br>Otherwise the prompt will simply be "Password: " and it's not very clear which password is being asked for. With the above line in effect, it's clear the prompt is coming from sudo, and which password is required. :-)<br>
</font></font></div></div>