Console.apps not allowing users to run system-config-user

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7.1
  • console.apps
  • polkit

Issue

Adding the following line in /etc/security/console.app/system-config-users does not allow the users of the GROUPNAME group access to run system-config-users.

FALLBACK=true
UGROUPS=<GROUPNAME>

Resolution

Create a polkit entry on the system in question. For local and network groups, use the following example:

# cat /etc/polkit-1/rules.d/48-system-config-users.rules
/* Allow users in <GROUPNAME> group to run System Config Users 
without authentication */
polkit.addRule(function(action, subject) {
    if (action.id == "org.fedoraproject.config.users.pkexec.run" &&
        subject.isInGroup("<GRPOUPNAME>")) {
        return polkit.Result.YES;
    }
});
[root@example ~]# systemctl restart polkitd

Diagnostic Steps

[root@example ~]$ system-config-users
Error executing command as another user: Not authorized

This incident has been reported.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.