Linux CUPS Web Interface 403 Forbidden — How to Enable Admin Access
Joe B.
Reviewed for technical accuracy
Specialities: Ubuntu, Debian, Fedora, Arch, CUPS/IPP, Samba printing, Networking, Security (SELinux/AppArmor)
CUPS 403 Forbidden on Ubuntu/Debian/Fedora/Arch — enable web admin, fix cupsd.conf, allow port 631
Quick answer: the accepted fix
Accepted fix when you see CUPS 403 Forbidden on localhost:631:
enable WebInterface Yes, add user to lpadmin, permit access in cupsd.conf (Allow localhost and your LAN as needed), open firewall port 631, then restart CUPS. On SELinux systems, set the required booleans for network server access.
CUPS web interface disabled by default — enable and restart
If WebInterface No is set, change it to WebInterface Yes in /etc/cups/cupsd.conf and run sudo systemctl restart cups. Then visit http://localhost:631/admin.
Remote CUPS administration (secure)
For remote access, set Listen 0.0.0.0:631, add Allow 192.168.1.0/24 in <Location /> and <Location /admin>, require @SYSTEM, and use https://. Limit exposure with a VPN or SSH tunnel.
CUPS 403 forbidden — troubleshooting tips
Most 403 errors are caused by lpadmin membership, cupsd.conf rules, or firewall/SELinux.
Quick path: verify WebInterface → check lpadmin group → review <Location /admin> access rules → open IPP/631 → restart CUPS → test with curl. Use journalctl -u cups for logs and ausearch for SELinux denials.
Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including Linux admins and printing specialists.
Expert will respond in minutes
We match you with an Expert who specializes in CUPS, IPP, and enterprise printing security.
Save time & money
No guesswork or downtime. Get compliant CUPS configs and secure remote admin.
FAQ
Why does CUPS show 403 Forbidden on /admin?
Usually because WebInterface is disabled, your user isn’t in lpadmin, or <Location /admin> blocks your host. Fix cupsd.conf, add yourself to lpadmin, and restart CUPS.
How do I enable remote CUPS admin access safely?
Allow only your LAN in Allow directives, require @SYSTEM, enable HTTPS, and limit the lpadmin group. Consider SSH tunneling instead of opening 631 to the world.
Firewall or SELinux is blocking CUPS — what now?
Open port 631 (IPP) on your firewall. On Fedora/RHEL, set necessary SELinux booleans (e.g., cups_enable_network_server) and follow setroubleshootd guidance for any AVC denials.
Can I manage CUPS without the web UI?
Yes. Use lpadmin, lpstat, and lpoptions CLI tools or edit PPDs directly. The web UI is optional once access policies are correct.
How do I reset cupsd.conf to defaults?
Backup then reinstall package defaults (e.g., sudo apt --reinstall install cups) or copy from /usr/share/cups/cupsd.conf.default if your distro provides it.
| Symptom | Likely cause | Quick fix |
|---|---|---|
| 403 on /admin | Web UI disabled; user not in lpadmin | Set WebInterface Yes; add user to lpadmin |
| 403 after auth | Require rules block host; wrong auth type | Allow localhost/LAN; set AuthType Default and Require user @SYSTEM |
| Cannot connect remotely | Listen only on localhost; firewall closed | Set Listen 0.0.0.0:631; open port 631 |
| Fedora/RHEL only | SELinux denial | Review AVC logs; set cups_enable_network_server boolean |
Step‑by‑step (Linux)
- Edit
/etc/cups/cupsd.conf→ WebInterface Yes, set access rules for/and/admin. - Add your account to lpadmin and re‑login.
- Open firewall for IPP/631 and, if needed, set Listen 0.0.0.0:631.
- Restart service:
sudo systemctl restart cupsand test https://localhost:631.
Sources
Filed under: macOS printing & CUPS
Related articles
- Linux CUPS prints one page then hangs — backend/filter crash
- Linux cups-browsed gives wrong PPD — force assign (without breaking auto-discovery)
- Linux Snap apps can’t print — CUPS socket link fix
- Fedora PDF background missing — poppler flag
- Ubuntu sandboxed PDF viewer wrong color — Ghostscript route (print/render)
- CUPS Bad Request or TLS Error on Linux — What's Breaking It and How to Fix It
- macOS Photos Book Export Has Blurry Text — What's Lowering the Quality and How to Get Sharp Results
- macOS Adobe apps only print grayscale — ICC pipeline force fix