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

Johan Bengtsson elijah at chalmers.se
Thu Oct 3 00:39:14 PDT 2019


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
________________________________________
From: cups <cups-bounces at cups.org> on behalf of Max <decimomaximus at gmail.com>
Sent: 01 October 2019 16:46
To: cups at cups.org
Subject: [cups] Changing CUPS print request-user on MacOs Mojave

Hi all,
Since I have to configure a "follow-me" Kyocera printer in an enterprise
environment on a winspooler with AD user, I need to specify a different
CUPS request-user to print.
By default CUPS sends a print request with the macos session login
username, so for example if I'm logged in macos with "joe" username, the
winspooler will receive a print-request with "joe" username, but I won't
allowed to print because "joe" does not match my AD (Active Directory)
user. Hence I need to change the CUPS user-request.
On Linux I achieved this by setting the variable CUPS_USER to my AD user
in /etc/environment file, so CUPS will send the print-request with my AD
user specified in CUPS_USER.
On MacOS I don't know how to get to solve the problem. I tried to use
the client.conf with the "User" directive in my $HOME/.cups/ directory,
but client.conf is deprecated and CUPS hangs.
Is there another way to set the CUPS print request-user in Mojave?

Thanks in advance
_______________________________________________
cups mailing list
cups at cups.org
https://lists.cups.org/mailman/listinfo/cups


More information about the cups mailing list