[cups] CUPS won't send my user name to the printer

Michael Sweet msweet at apple.com
Mon Sep 10 06:07:56 PDT 2018


Hi Ian,

> On Sep 9, 2018, at 10:00 PM, マスターズ イアン <ian at ncsa.jp> wrote:
> 
> Hi again folks
> 
> As I previously mentioned in a previous post, I don't have administrative access to the Fuji Xerox I want to print to from my CentOS7 virtual machine, but I got someone to print out the printer's log files for me. 
> 
> It shows that the jobs I'm sending are not accompanied by my user name, which is required, so the printer is throwing the jobs away.
> 
> Looking at the CUPS access log, for any job sent to the printer, the username is not present in the 3rd column of the log.

That's just the "authenticated user" for the requests.  CUPS still accepts and passes through the (unauthenticated) local username ("ian", "bob", "mike", etc.).

> So now I need to try to make sure that CUPS sends the username, otherwise the printer will not print my job.
> 
> These are the things I've tried so far:
> 
> 1. I made an account on the CentOS VM with the same 4 digit username which is authorised to print to the printer.

That's likely to cause some problems (user names are supposed to start with a letter so they are not confused for UIDs).

> 2. Using the required fxlputil utility, setting the job type to 'Secure Print' and user ID to my username (my 4 digit number). 

That right there can be a problem - if they aren't using the standard printing system interfaces then you WILL have problems, guaranteed!

> 3. In /etc/cups/client.conf:
> User <username>

That will change the default user when talking to CUPS, and the default username that gets passed over IPP to printers.

> 4. In /etc/cups/printers.conf
> DeviceURI lpd://<username>:@<printer IP>
> Option job-originating-user-name <username>

You can't set the job-originating-user-name value this way - it gets copied from either the authenticated username or the one passed in the requesting-user-name attribute of the print request (what you've overridden in the client.conf file).

> 5. From command line:
> lp -U <username> -d <CUPS printer name> <filename>
> 
> What else can I try?

Hard to say since this printer obviously isn't following standards...  Maybe call Fuji Xerox and ask them for help?

_________________________________________________________
Michael Sweet, Senior Printing System Engineer



More information about the cups mailing list