Created at 12:49 May 10, 2005 by steve, last modified at 12:49 May 10, 2005
To allow printing from certain computers to a certain printer, edit the /etc/cups/cupsd.conf file and see if the <Location /printers/printer_name> is already present.
Otherwise, create it with these two lines:
<Location /printers/printer_name> </Location>
The printer_name portion represents the printer queue name that you have configured already.
Between the above two lines, you can add or edit the Order, Allow , and Deny directives to your liking.
Here are two examples:
# Allow printing to printer MyLaserJet from # itself and computers 192.10.2.5 and 192.10.2.6 <Location /printers/MyLaserJet> ... Order deny,allow Deny from all Allow from 127.0.0.1 Allow from 192.10.2.5 Allow from 192.10.2.6 </Location> # Allow printing to printer MyLaserJet from # itself and all computers on subnet 192.10.2.x <Location /printers/MyLaserJet> ... Order deny,allow Deny from all Allow from 127.0.0.1 Allow from 192.10.2.0/255.255.255.0 </Location>
To enable the changes in the configuration file, restart the cupsd daemon. Listing