Re: how users can change cpu frequency ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 27, 2010 at 00:52, Alessandro Boggiano <boggiano@xxxxxxxxx> wrote:
Hi all,
I'd like to permit to users to scaling the cpu frequency
using the applet cpu scaling inside gnome without typing root password.
How can I do it?


If that can be done with a command, add the user and command to sudoers with the NOPASSWD option.

#visusdo
add the following line:
user ALL=(ALL) NOPASSWD:command

then your user can use "sudo command" 

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.

"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

Something else to consider adding to sudoers...
Defaults passprompt = "[sudo] Please enter the password %p: "

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. :-)
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux