I need to send a request to CUPS server with the specific request-user parameter - remote_user instead of local_user. How should I set the local CUPS server?

link|improve this question

67% accept rate
feedback

1 Answer

If you print using this command:

lp -d yourprintername -U yourusername /path/to/file

you'll find requesting-user-name="yourusername" in CUPS' error_log file (but your cupsd.conf needs to be edited to use LogLevel debug for that message to show up).

If you want to force a default option for all users, run this command as root:

lpoptions -d yourprintername -o requesting-user-name=someusername

[Note: some versions of CUPS seem to mix up 'job-originating-user-name' and 'requesting-user-name'. So you know if my suggestion doesn't work for you...]

link|improve this answer
No. I want to use from desktop. Running this command from root does not affect the default on my system as well. – Maciej Piechotka Aug 7 '10 at 14:41
@Maciej: had forgotten to add the command. – pipitas Aug 7 '10 at 15:16
I have 1.4.4. Do you know which does not? – Maciej Piechotka Aug 7 '10 at 16:07
feedback

Your Answer

 
or
required, but never shown

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