[cups.general] print jobs with different user name
Kurt Pfeifle
kpfeifle at danka.de
Thu Jul 6 15:55:59 PDT 2006
Matt Hull <mhull1 at uic.edu> wrote (Thursday 06 July 2006 23:34):
> On Thu, 6 Jul 2006, Kurt Pfeifle wrote:
>
>> Matt Hull <mhull1 at uic.edu> wrote (Thursday 06 July 2006 19:54):
>>
>> > how how does cups get the user name to send with a print job?
>>
>> CUPS 1.2 has "lp" and "lpr" client programs that can take
>>
>> "-U username"
>>
>> commandline parameter to send a job as a different user.
>>
>> Cheers,
>> Kurt
>
> that would work. i was thinking that it might be easier if a user name
> could be set somewhere else for the printer, or user such as cups.conf
Well, do you know about ~/.lpoptions and /etc/cups/lpoptions files?
They may be used to store default print options per printer (and
~/.lpoptions obviously belongs to a user, while /etc/cups/lpoptions
is used by root to pre-define defaults in case users don't override
them with their own settings).
Instead of "-U username" on the commandline, you could also use "-o
job-originating-user-name=username" as a more IPP conforming syntax.
Put the username option into the appropriate $lpotions file, using
this IPP syntax...
Cheers,
Kurt
More information about the cups
mailing list