Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

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

share|improve this answer
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

According to this, a User directive could be placed in /etc/cups/client.conf or ~/.cups/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 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: (search for CUPS_USER)

share|improve this answer

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

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
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

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://

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


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.