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?
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?
According to the CUPS release notes, support for specifying a different username was added in CUPS 1.6b1:
The Ubuntu bug report below (I can't make it a link due to ServerFault limits) is another place to look for information and workarounds for pre-CUPS 1.6b1, although the workarounds are not very practical.
bugs.launchpad.net/common-print-dialog-gtk/+bug/856776
If you print using this command:
you'll find
requesting-user-name="yourusername"
in CUPS'error_log
file (but yourcupsd.conf
needs to be edited to useLogLevel debug
for that message to show up).If you want to force a default option for all users, run this command as root:
[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...]