Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to let members of the group labmembers adjust the CPU frequency scaling on a system using cpufreq-selector. However, by default, this is restricted to members of the admin group.

Per this question, I've created the following file:

/etc/polkit-1/localauthority/30-site.d$ cat 50-cpufreq.pkla 
[CPU Frequency should be allowed for everyone]
AdminIdentities=unix-group:labmembers
Action=org.gnome.cpufreqselector
ResultActive=yes
ResultInactive=yes

However, it seems to have no effect. I can't find any command to reload PolicyKit's configuration, and rebooting doesn't do it either. I've also tried naming it 50-cpufreq.conf, to no more effect. There's nothing I've found that would tell me whether a pkla file is well-formed or anything like that, either.

What am I missing?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It appears that there's a typo in your configuration file. To restrict to a Group (or user) you'll need to use Identity rather than AdminIdentities

From the pklocalauthority man page:

   Identity
      A semi-colon separated list of globs to match identities. Each glob should start with unix-user: or unix-group: to specify whether to match on a UNIX user name or a UNIX group name.

Ideally the syntax would be:

[CPU Frequency should be allowed for everyone]
Identity=unix-group:labmembers
Action=org.gnome.cpufreqselector
ResultActive=yes
ResultInactive=yes
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.