How to Enable CUPS on Mac: Step-by-Step Guide
In this article
Yes, you can enable the Common Unix Printing System (CUPS) web interface on macOS to manage printers directly from your browser. This feature is built into the operating system but is disabled by default for security reasons. Enabling it allows you to configure printer queues, view job status, and adjust advanced settings via a local web server without opening the graphical System Settings app.
What You'll Need
- A Mac running macOS (this method applies to most modern versions including Ventura, Sonoma, and Sequoia)
- Administrator privileges on the Mac account
- A terminal window or command line access
- A web browser (Safari, Chrome, Firefox, etc.)
Step-by-Step
- Open Terminal: Navigate to Applications > Utilities > Terminal and launch the application. Alternatively, use Spotlight search by pressing Command + Space and typing "Terminal".
- Enable the Web Interface: In the Terminal window, type the following command exactly as shown and press Return:
sudo cupsd -l
Note: On some newer macOS versions, simply enabling the service via System Settings is preferred. If the above command does not work or returns an error, proceed to step 3 first. - Enable via System Settings (Recommended for Modern macOS): Open System Settings (or System Preferences on older versions). Scroll down to Printers & Scanners. Look for a button or link that says Open Print Queue or Printer Settings. Within the printer management dialog, look for a checkbox labeled Allow remote access or Enable web interface. Check this box.
Note: Menu labels can differ slightly by version, device, or region. If you do not see these options in System Settings, you may need to use the command line method below.
- Alternative Command Line Method: If you prefer using Terminal or cannot find the setting in System Settings, run the following command to start the CUPS daemon with logging enabled:
sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
Then, verify it is running by typing:ps aux | grep cupsd
You should see a process listed for cupsd. - Access the Interface: Open your web browser and navigate to
http://localhost:631. You should see the CUPS administration page.If you get a connection refused error, ensure the firewall is allowing incoming connections on port 631, or try restarting the CUPS service by runningsudo launchctl restart org.cups.cupsd. - Log In: When prompted, enter your Mac's administrator username and password. Note that CUPS requires administrative rights to change printer configurations.
- Configure Printers: Once logged in, you can add new printers, delete existing ones, pause jobs, or view detailed logs under the respective tabs at the top of the page.
Common Mistakes
- Using the Wrong Username: Ensure you are entering the username of an Administrator account. Standard user accounts will be denied access to modify printer settings.
- Ignoring Firewall Settings: macOS Firewall may block incoming connections to CUPS. If you are trying to access the interface from another device on the network, you must explicitly allow CUPS in System Settings > Network > Firewall.
- Confusing Localhost with IP Address: Accessing
http://localhost:631only works from the Mac itself. To access it from another computer, use the Mac's local IP address (e.g.,http://192.168.1.5:631). - Not Restarting After Changes: Some configuration changes require restarting the CUPS service to take effect. Use
sudo launchctl restart org.cups.cupsdif changes do not appear immediately.
Tips
- Security First: The CUPS web interface provides full control over printing. Do not expose it to public networks. Only enable remote access if necessary and secure your network.
- Use HTTPS: For better security, consider configuring CUPS to use SSL/TLS. This encrypts the communication between your browser and the CUPS server.
- Check Logs: If a printer fails, check the Jobs tab in the CUPS interface or view the log file at
/var/log/cups/error_logfor detailed error messages. - Backup Configuration: Before making major changes, back up the CUPS configuration file located at
/etc/cups/cupsd.confusing Terminal.
Troubleshooting
If you encounter issues while enabling or using CUPS, follow these steps in order:
- CUPS Service Not Running: Verify the service is active by running
sudo launchctl list | grep cups. If it is not listed, load it withsudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist. - Connection Refused: Ensure you are accessing the correct URL (
localhost:631). If accessing remotely, confirm the Mac's IP address and that the firewall allows port 631. - Login Failures: Double-check your username and password. Ensure the account has Administrator privileges. If you have forgotten your password, you will need to reset it via Recovery Mode.
- Printer Not Showing: If printers do not appear in the CUPS interface, they may not be added to the system yet. Add them via System Settings > Printers & Scanners first, then refresh the CUPS page.
- Permission Denied: If you receive permission errors, ensure you are using an admin account. You can also check the permissions of the CUPS configuration files using
ls -l /etc/cups/.
Frequently Asked Questions
Is CUPS pre-installed on Mac?
Yes, CUPS is included in macOS by default, but its web interface is disabled out of the box for security purposes.
Can I access CUPS from another computer?
Yes, but you must enable remote access in the CUPS configuration and ensure your firewall allows incoming connections on port 631.
Does enabling CUPS slow down my Mac?
No, CUPS runs as a background service and has minimal impact on system performance unless actively processing large print jobs.
How do I disable CUPS again?
You can disable the web interface by unchecking the "Allow remote access" option in System Settings or by stopping the CUPS service via Terminal.
Why is my printer not showing in CUPS?
CUPS manages printers added to the system. Ensure the printer is properly installed and recognized by macOS via System Settings before expecting it to appear in CUPS.
Is it safe to use CUPS on a home network?
It is generally safe for local use. However, avoid exposing it to the internet or untrusted networks due to potential security vulnerabilities.