CUPS Problems

Issues related to applications and software problems
Post Reply
WT9BIND
Posts: 1
Joined: 2019/06/27 10:32:24

CUPS Problems

Post by WT9BIND » 2019/06/27 10:40:20

Hi,

First time poster and first time user of CentOS, so please be patient with me :D

I have an Ubuntu Server that has started causing me grief with kernel panics and I thought if I need to rebuild, I will try a different distrobution and decided on CentOS.

My previous server and now this one acts mainly as a Plex Server, File (SMB) Server and Print Server.
I also run Avahi for airprinting for iOS and Android.

So far, most things have gone without a hitch, but CUPS is driving me crazy.
I will start out by saying that I can print locally on the Server so I know printing is OK
I finally had the server start advertising the printer via Bonjour (Yes a long time Mac user here) and I can add the printer. If I go to print, I get a message saying "The Printer is unreachable at this time"
Also, if I try and remotely access http://myiphere:631/printers I get a page not found across browsers. Once again, just to make it clear, if I go to 127.0.0.1:631/printers on the server itself, I have no issues gaining access

So I started butchering hte cupsd.conf file with every forum post that I can find, now it looks like this:

Code: Select all

MaxLogSize 0
#
# "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Added by Dan 27th June 2019 from linuxquestions.org https://www.linuxquestions.org/linux/answers/Netwo$
ServerName BINSVR4
BrowseAddress 255.255.255.0
DefaultEncryption Never

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.1.0:631
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow, deny
allow localhost
allow 192.168.1.0/24
allow 255.255.255.0
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
</Location>
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Jo$
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-De$
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hol$
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Jo$
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-De$
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hol$
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z mike $".
#
Also, I restart the cups service after every "hack" I make to this file.

So I have two issues that require your expertise, and I feel if one is solved, both will be.
1. I can't get to the http://myiphere:631/printers URL
2. I can't actually print (remotely)

Thank you

Post Reply