Skip to content

cupsctl command builder

Change the print system's settings

Pick what to turn on or off on a Mac or Linux computer: the CUPS web page at localhost:631, printer sharing, remote admin, debug logging. Get one cupsctl line, the line that puts it back, and paste what cupsctl prints to read it in plain words. It runs in your browser: nothing you type is sent to us.

Turning on the web page on a Mac is an example. Pick what you want to change.

This computer
  • Web page at localhost:631
  • Share printers
  • Remote administration
  • Allow any network
  • Debug logging
  • Anyone can cancel any job

The queue name lpstat -p shows. Each queue is shared on its own, as well as the computer.

Paste this in Terminal

Open Terminal from Applications, Utilities. sudo asks for an administrator password.

The commands, 2 lines
sudo cupsctl WebInterface=yes
cupsctl

Each setting

  • WebInterface=yesTurns on the CUPS pages at http://localhost:631 to see queues, jobs and printers in a browser. Off by default on a Mac.

Then open http://localhost:631 in a browser on this computer. The admin pages ask for this Mac's administrator name and password.

To put it back

sudo cupsctl WebInterface=no

Read the settings back

Run cupsctl with nothing after it and paste what it prints. The example is a Mac as it comes.

  • Off_debug_loggingDebug logging is off.
  • Off_remote_adminRemote administration is off.
  • Off_remote_anyAllow any network is off.
  • Off_share_printersShare printers is off.
  • Off_user_cancel_anyAnyone can cancel any job is off.
  • OffWebInterfaceWeb page at localhost:631 is off.

When it does not take

cupsctl changes CUPS, the print system on every Mac and most Linux computers, which keeps each print queue and talks to printers over IPP. A computer sharing its printers this way is a small print server.

  • cupsctl WebInterface=yes is not working

    Run it with sudo, then load http://localhost:631 again. If the page still does not open, CUPS is not running: on Linux sudo systemctl restart cups; on a Mac print any page, which starts it.

  • The web page says Forbidden

    The admin pages open only from the computer itself unless remote administration is on. From another computer, turn it on here, and use https with the computer's name.

  • What is the username and password for localhost:631?

    There is no separate CUPS password. On a Mac it is an administrator's own name and password; on Linux, root or a user in the lpadmin group (sys or wheel on some systems).

  • Sharing is on but other computers do not see the printer

    Each queue shares on its own too. Add its name above, or run lpadmin -p NAME -o printer-is-shared=true. Other computers find it over Bonjour, so they need to be on the same network.

No computer has to share its printers.

Sharing a printer from one Mac makes that Mac a print server that has to stay on. In KyberCopy the relay in the copy room reaches each printer over IPP or port 9100, and teachers send from the request form on any device.

Book a demo