Linux/UNIX: Sharing A CUPS Printer Queue

Common Unix Printing System (CUPS) is a modular computer printing system for Apple OS X, Linux and UNIX like operating systems. It allows Linux computer to act as a printer server. As a server it accepts printing requests from all client computer and send them to actual printer. It does printing accounting and other important stuff.

CUPS Admin Tools

CUPS comes with the following admin tools:

  • GUI admin tools such gnome-cups-manager or KDEPrint or redhat-config-printer
  • Text based GUI admin tools redhat-config-printer-tu)
  • Web based admin tool (run at port 631 so http://server-ip:631/ or http://localhost:631/ will open CUPS web-admin)
  • And command line editing tools (lpadmin)

Just visit the http://localhost:631/ and you can add or share the printer using webbased tools:

Fig.01: UNIX / Linux Cups Printer Sharing

Queue Configuration

You can use above tools to share or setup a printer. The default configuration file is /etc/cups/cupsd.conf. You can edit this file to allow network access:
# vi /etc/cups/cupsd.conf

Modified text:
<Location/>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*
</Location>

CUPS will accept connection from localhost and network 192.168.1.0/24. Just restart the service and your printer queue is ready to accept connections from clients:
# /etc/init.d/cups restart

Open Iptables 631 port

Make sure you open TCP/UDP Internet Printing Protocol (IPP) 631 on CPUS server system.

See also:


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • H M Joshi Sep 12, 2006 @ 11:42

    I am using a linux terminal server to connect thin clients to SUN Solaris machine. I want some one to guide me how do i configure local printer on a thin client so that a report generated in SUN machine can be sent to that printer.

  • Sagar Mhatre Oct 1, 2009 @ 2:48

    Please can you help me for windows printing ?

  • Niko Aug 17, 2010 @ 21:44

    Hay thanks for info… it works like a charm for me… I had problems with print sharing but after edit cupsd.conf and change Location parameters it works… thank you so much

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum