How to access CUPS from remote systems in Red Hat Enterprise Linux
Issue
- Not able to access CUPS web interface from remote system in the same subnet.
- Browser shows "403 Forbidden" or "403 Authentication Denied" error.
-
The following errors are showing up in
/var/log/cups/error_log
:cupsdReadClient: 9 GET /admin/ HTTP/1.1 cupsdSendError: 9 code=403 (Forbidden)
-
The
lpadmin
command returns "Transport endpoint is not connected" when trying to list printers on a remote system:$ lpstat -h prsrv.example.com -a lpstat: Transport endpoint is not connected
-
In RHEL 8, the
lpadmin
command returns "Bad file descriptor" when trying to list printers on a remote system by setting "ServerName name.of.remote.system
" in/etc/cups/client.conf
:# cat /etc/cups/client.conf ServerName prsrv.example.com # lpstat -a lpstat: Bad file descriptor
Environment
- Red Hat Enterprise Linux 5, 6, 7, 8
- Common Unix Printing System (CUPS), all versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.