This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 698377 - authconfig --test does not run as an unprivileged users
authconfig --test does not run as an unprivileged users
Product: Fedora
Classification: Fedora
Component: authconfig (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2011-04-20 14:20 EDT by Andrew McNabb
Modified: 2013-07-03 11:10 EDT (History)
2 users (show)

See Also:
Fixed In Version: authconfig-6.1.15-1.fc16
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-07-22 07:33:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew McNabb 2011-04-20 14:20:36 EDT
Description of problem:

The authconfig man page states that "If --test action is specified, authconfig can be  run  by  users  other then  root,  and  any  configuration  changes are not saved but printed instead."  However, if I try to run "authconfig --test" as an unprivileged user, it brings up a modal dialog stating "You are attempting to run "authconfig" which requires administrative privileges, but more information is needed in order to do so" and quits if I hit cancel.

I'm not sure whether there's a bug, or if it's just outdated information in the man page.

Version-Release number of selected component (if applicable):

Comment 1 Andrew McNabb 2011-05-02 17:22:36 EDT
I've also checked with Fedora 15 and found that it still requires authentication with authconfig-6.1.13-1.fc15.x86_64.
Comment 2 Tomas Mraz 2011-05-17 10:28:49 EDT
Authconfig uses consolehelper for the root authentication. If you run directly the /usr/sbin/authconfig binary, it will not attempt the consolehelper authentication and will runt the --test fine as an unprivileged user.
Comment 3 Andrew McNabb 2011-05-17 12:37:56 EDT
Aah, then the authconfig man page should clearly reflect that there are two different authconfigs.
Comment 4 Tomas Mraz 2011-05-17 12:43:13 EDT
There are no two different authconfigs, there are just two different ways how to run it. :)

But OK, I can add something to the manual page.
Comment 5 Tomas Mraz 2011-07-22 07:33:50 EDT
Mentioned /usr/sbin/authconfig in the manpage.
Comment 6 Fedora Update System 2011-07-22 07:46:25 EDT
authconfig-6.1.15-1.fc15 has been submitted as an update for Fedora 15.
Comment 7 Fedora Update System 2011-08-01 22:02:41 EDT
authconfig-6.1.15-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Peter Backes 2013-07-03 11:10:09 EDT
IMO, this bug was not resolved in a sufficiently useful and intuitive manner. If I do "man authconfig", it has some section NOTES far down mentioning /usr/sbin/authconfig, while the user would expect to know about this when reading about --test. The man page currently says: "If --test action is specified, the authconfig just  reads  the  current settings  from the various configuration files and prints their values." I suggest changing this into: "If --test action is specified, authconfig just  reads  the  current settings  from the various configuration files and prints their values. This action can be  run  by  users  other than  root. However, note that /usr/bin/authconfig uses consolehelper(8) to authenticate  as  the system user before it starts up. If you want to run it directly without the authentication as the system  user,  run  /usr/sbin/authconfig instead." and removing the note from the NOTES section.

Note You need to log in before you can comment on or make changes to this bug.