Bug 848499 - failed to authenticate when in non GUI environment
failed to authenticate when in non GUI environment
Status: CLOSED NEXTRELEASE
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: PackageKit (Show other bugs)
7.0
x86_64 Linux
unspecified Severity low
: rc
: 7.0
Assigned To: Richard Hughes
Desktop QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-15 15:04 EDT by Vladimir Benes
Modified: 2012-11-01 06:11 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-11-01 06:11:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vladimir Benes 2012-08-15 15:04:58 EDT
Description of problem:
If I am logged in non X environment I cannot install packages with packagekit as it can never authenticate me as using just GUI auth dialogs. 

Version-Release number of selected component (if applicable):
PackageKit-0.7.4-5.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.init 3
2.log in as system admin (not root)
3.execute pkcon install mc
  
Actual results:
Fatal error: Failed to obtain authentication.

Expected results:
some kind of polkit cli authentication dialog? does anything like this exist?

Additional info:
Comment 1 Richard Hughes 2012-11-01 06:11:18 EDT
commit 1437130d3ae127e09746436312f1d8240e8d029a
Author: Matthias Klumpp <matthias@tenstral.net>
Date:   Wed Sep 19 16:49:42 2012 +0200

    Use pkttyagent to request user passwords if running without GUI PolKit agent
    
    This change will allow it to use pkcon over remote-shells (ssh) or
    to use it witout a running GUI desktop environment in the background.

:100644 100644 ecb9a35... da9c74d... M  client/pk-console.c
:100644 100644 80dcfcd... bef3230... M  lib/packagekit-glib2/Makefile.am
:100644 100644 183650e... b469bc8... M  lib/packagekit-glib2/packagekit-private.h
:000000 100644 0000000... 751a425... A  lib/packagekit-glib2/pk-spawn-polkit-agent.c
:000000 100644 0000000... 5239916... A  lib/packagekit-glib2/pk-spawn-polkit-agent.h

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