Bug 523336

Summary: User can't add printer via system-config-printer from VNC viewer
Product: [Fedora] Fedora Reporter: Roland Roberts <roland>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 10:27:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roland Roberts 2009-09-14 22:32:44 UTC
Description of problem:

I have a user "admin" which is unprivileged attempting to add a printer using the GNOME menu System > Administration > Printing.  The user session is via VNC; that is, the server is running a VNC session for user "admin" and I am connecting to that from another host on the LAN.  The user is asked to authenticate as root and does so.  After adding all information for the new printer, the final step produces a dialog box which says 

Unauthorized Request (addPrinter)
You are not authorized to carry out the requested action

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

system-config-printer-1.1.8-6.fc11.i586
PolicyKit-0.9-6.fc11.i586

How reproducible:


Steps to Reproduce:
1. Log in as normal user
2. Select System > Administration > Printing
3. Add a new printer
  
Actual results:

Permission denied with message describe earlier.

Expected results:

Printer added successfully.

Additional info:

When performing the same actions from the X console, I get a *second* request to authenticate as root at the point I get the "Unauthorized Request" message above.

Comment 1 Tim Waugh 2009-09-15 10:27:14 UTC
The root of the problem is that VNC sessions are not handled as console sessions.

Use System->Preferences->Authorizations to allow non-console sessions to perform printing administration tasks.

*** This bug has been marked as a duplicate of bug 489344 ***