KendekEzt kiadva konzolban szintén kéri a jelszót. Így néz ki jelenleg a sudoers fájl:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
%thomascube ALL = (root) NOPASSWD: /usr/bin/cpufreq-set
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
Ezt pedig a konzol adja:
thomascube@thomascube-nb:~$ /usr/bin/cpufreq-set -g powersave
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?
thomascube@thomascube-nb:~$ sudo /usr/bin/cpufreq-set -g powersave
[sudo] password for thomascube: