Tuesday, December 16, 2008

How to enable CUPS remote administration

CUPS (Common UNIX Printing System) is the standards-based, open source printing system developed by Apple Inc. for Mac OS X and other UNIX-like operating systems.

The default installation of CUPS only enable you to manage it from localhost computer. However, if you are interested in remotely administering CUPS, you need to grant access from other systems than just localhost to the CUPS administration.

To do so, edit the /etc/cups/cupsd.conf and have it explicitly grant access to the systems you want. as for example, to grant access to the system with IP address of 10.0.0.1:

<Location /admin>
(...)
Allow 10.0.0.1
Deny all
</Location>

<Location />
(...)
Allow 10.0.0.1
Deny all

<Location /admin/conf>
(...)
Allow 10.0.0.1
Deny all

By the way, do not forget to restart your CUPS service after this configuration!

No comments:

Post a Comment