Bug 170013 - printer test page: add username to lpr if SUDO_USER env var is available
Summary: printer test page: add username to lpr if SUDO_USER env var is available
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2005-10-06 15:38 UTC by Richard Renard
Modified: 2007-11-30 22:11 UTC (History)
0 users

Clone Of:
Last Closed: 2005-10-17 11:20:58 UTC

Attachments (Terms of Use)
patch for the bug (561 bytes, patch)
2005-10-06 15:40 UTC, Richard Renard
no flags Details | Diff

Description Richard Renard 2005-10-06 15:38:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20051003 Debian/1.4.99+1.5beta1.dfsg-5 Firefox/1.4

Description of problem:
The following fix adds support for the -U option for the lpr command when printing the test page.
-U option is added when the SUDO_USER environment variable is available, which is the case when launched as "sudo /usr/sbin/printconf-gui".

Specifiying the user is useful if one wants to test printer with smbspool and kerberos, and maybe for other backend (?).
smbspool needs to know the user in order to get the kerberos ticket otherwise the printing job is done as "root" and fails...

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

How reproducible:

Steps to Reproduce:
1. print test page fails with kerberos smb printers

Additional info:

Comment 1 Richard Renard 2005-10-06 15:40:05 UTC
Created attachment 119673 [details]
patch for the bug

Comment 2 Tim Waugh 2005-10-07 10:37:04 UTC
Thanks.  Fixed in CVS.

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