Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using CUPS to print on an enterprise network. The job gets submitted fine, but I need to submit it as another username. Now I'm jon but I need to send it as say jonallard.

On the command line, one could print as such

lp -U jonallard -d printer1 file.ext

How do I customize the username part when using the GUI printing dialogs and the Printing system settings?

It is possible that it isn't, in fact, possible to add this username to the Ubuntu print config. If so, where should I ask for an improvement?

share|improve this question

5 Answers 5

up vote 2 down vote accepted

The issue has been reported as a bug (856776) and is now on the wishlist.

share|improve this answer
1  
yep, "wishlist" doesn't really help those of us stuck with an office full of Ubuntu PCs that now can't print. sigh –  artfulrobot Dec 18 '12 at 11:19
    
"Ubuntu: We don't care." –  jonallard Nov 30 '13 at 2:12

You could use the username in the IPP URI when adding the printer queue, see this document for details:

http://www.cups.org/documentation.php/network.html

Otherwise I can see no options in cups or gnome print dialogs to help you select a username for printing.

share|improve this answer
    
The print settings don't allow entering a username as part of the IPP URI when configuring. –  jonallard Sep 17 '11 at 9:03
    
You can add the username to the URI when adding the printer right? –  Martin Owens -doctormo- Sep 17 '11 at 10:37
    
No. (is too short) –  jonallard Sep 17 '11 at 18:20
1  
Then this is a bug and should be reported under the gnome printer settings project in launchpad. –  Martin Owens -doctormo- Sep 22 '11 at 12:19

According to this https://www.cups.org/documentation.php/doc-1.7/ref-client-conf.html, a User directive could be placed in /etc/cups/client.conf or ~/.cups/client.conf

client.conf

The /etc/cups/client.conf and ~/.cups/client.conf files contain up to two directives that determine how the client behaves. Each directive is listed on a line by itself followed by its value. Comments are introduced using the number sign ("#") character at the beginning of a line.
...
...
User
Examples

User joe
User bob

However, this didn't work for me in Kubuntu Trusty. What worked, was to export the CUPS_USER environment variable by adding the following line in ~/.profile:

export CUPS_USER=vangelis

Needless to say (but I say), that you need to change vangelis to the username you would like to use.

You also need to restart you system so that the changes take effect in the desktop environment!

This information can be found at CUPS release notes here: http://www.cups.org/documentation.php/doc-1.6/relnotes.html (search for CUPS_USER)

share|improve this answer

I had the same problem as you, and I found a way to do this on my machine. On (X)ubuntu 14.04, I had to set the "Job/Billing Info" value in the print menu. Then, the print arrived correctly at my printer. I attached a screenshot for your reference. No other settings were necessary (apart from setting up the printer initially using its URI).enter image description here

share|improve this answer

This works for our system. Tested in Ubuntu 10.04 - 14.04, Linux Mint Print server Canon Uniflow, secure printing

First, stop cups

sudo service cups stop

Then edit the file /etc/cups/printers.conf and add your username to the DeviceURI like this:

DeviceURI lpd://myusername@server.my.domain/our_printqueue

Now start cups again

sudo service cups start

However, be aware that this setting effects all users on this machine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.