[cups] Changing CUPS print request-user on MacOs Mojave

Helge Blischke helgeblischke at web.de
Thu Oct 3 12:23:59 PDT 2019



> Am 03.10.2019 um 16:19 schrieb Johan Bengtsson <elijah at chalmers.se>:
> 
> On Thu, 3 Oct 2019, Helge Blischke wrote:
>>> Am 03.10.2019 um 09:39 schrieb Johan Bengtsson <elijah at chalmers.se>:
>>> You could try the following commands in a terminal:
>>> $ defaults write org.cups.PrintingPrefs User your-ad-username
>>> To read the configuration:
>>> $ defaults read org.cups.PrintingPrefs
>>> -Johan Bengtsson
>> 

To be sure, I just did a test:

$ defaults write org.cups.PrintingPrefs User 'ItIsMe‘
$ cupsctl —debug-logging
$ lp -d some_printer some_file.ps
$ grep 'Job xxxx‘ /var/log/cups/error_log > /tmp/temp.log
	where xxxx is the job ID the lp command returned
$ defaults delete org.cups.PrintingPrefs User
	to revert to the previous state

Looking into the saved log file /tmp/temp.log it revealed that the defaults setting
had no effect; the requesting user name was still ma login name.

Helge




More information about the cups mailing list