Red Hat Bugzilla – Bug 170013
printer test page: add username to lpr if SUDO_USER env var is available
Last modified: 2007-11-30 17:11:14 EST
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):
Steps to Reproduce:
1. print test page fails with kerberos smb printers
Created attachment 119673 [details]
patch for the bug
Thanks. Fixed in CVS.