Results 1 to 4 of 4

Thread: openSuSE 13.1: Print server (cupsd) refuses to accept print jobs from remote cupsd

  1. #1

    Default openSuSE 13.1: Print server (cupsd) refuses to accept print jobs from remote cupsd

    Greetings!

    The current situation:
    - When initiating a print job locally (i. e. on the server), the printer works just fine.
    - When printing remotely from Windoze, the printer works the way it should, too.
    - When printing from a remote Linux box, the job isn't forwarded. Instead, "[Job X] The printer is not responding." messages show up in /var/log/cups/error_log).
    - However, when checking the remote printer queues, they show up just fine within YaST.

    I have already modified /etc/hosts.lpd so that print jobs are accepted from any address (listens only on the WLAN adapter and on the loopback device), with cupsd advertising the printers attached to it.

    FYI: My /etc/cups/cupsd.conf currently looks like this:

    Code:
    #
    # "$Id: cupsd.conf.in 9407 2010-12-09 21:24:51Z mike $"
    #
    # Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
    # complete description of this file.
    #
    
    # Log general information in error_log - change "warn" to "debug"
    # for troubleshooting...
    LogLevel warn
    
    # Administrator user group...
    SystemGroup sys root
    
    
    # Only listen for connections from the local machine.
    Listen 192.168.2.1:631
    Listen localhost:631
    Listen /var/run/cups/cups.sock
    
    # Show shared printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseLocalProtocols CUPS
    BrowseAddress @LOCAL
    
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    
    # Web interface setting...
    WebInterface Yes
    
    # Restrict access to the server...
    <Location />
    Allow @LOCAL
    Order allow,deny
    Allow 127.0.0.2
    </Location>
    
    # Restrict access to the admin pages...
    <Location /admin>
      Order allow,deny
    </Location>
    
    # Restrict access to configuration files...
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
    </Location>
    
    # Set the default printer/job policies...
    <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-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        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-Default CUPS-Get-Devices>
        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 Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        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-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        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-Default>
        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 Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        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 9407 2010-12-09 21:24:51Z mike $".
    #
    
    # The policy below is added by SUSE during build of our cups package.
    # The policy 'allowallforanybody' is totally open and insecure and therefore
    # it can only be used within an internal network where only trused users exist
    # and where the cupsd is not accessible at all from any external host, see
    # http://en.opensuse.org/SDB:CUPS_and_SANE_Firewall_settings
    # Have in mind that any user who is allowed to do printer admin tasks
    # can change the print queues as he likes - e.g. send copies of confidental
    # print jobs from an internal network to any external destination, see
    # http://en.opensuse.org/SDB:CUPS_in_a_Nutshell
    # For documentation regarding 'Managing Operation Policies' see
    # http://www.cups.org/documentation.php/doc-1.5/policies.html
    <Policy allowallforanybody>
      <Limit All>
        Order deny,allow
        Allow from all
      </Limit>
    </Policy>
    # Explicitly set the CUPS 'default' policy to be used by default:
    DefaultPolicy default
    # End of additions by SUSE.
    
    # 2013-12-07,21:25:34 modify_cupsd_conf Allow @LOCAL
    # 2013-12-07,21:25:34 modify_cupsd_conf BrowseAddress @LOCAL
    # 2013-12-07,21:25:34 modify_cupsd_conf Browsing On
    # 2013-12-07,21:25:34 modify_cupsd_conf Listen all
    Any idea what could be going awry here? Right now I'm out of options, and Uncle Google didn't dig up any information so far that could help resolve this issue.

  2. #2

    Default [Solved] Print server (cupsd) refuses to accept print jobs from remote cupsd

    After some tinkering I managed to gain remote access to the print server. Just configured the cups client to directly access the print server and tossed out cupsd on the client side.

  3. #3

    Default Re: openSuSE 13.1: Print server (cupsd) refuses to accept print jobs from remote cupsd

    Hi,
    I had the same problem. This' how, I solved it.
    1. Upgrade cups from 1.5 to 1.7 from obs:home:jsmeix repo. Because, there seem to be a great change in cups from 1.6 onwards - no more sharing of printers using cups, just mdns/avahi is used.
    2. Enable and start 'cups-browsed service' in yast2>services manager.
    3. In the firewall2,
    Allow mdns service (enough)
    Allowing broadcasting reply for all tcp/udp services with your lan network
    4. In yast2>printing, allow printing through network (of course, lan) and allow printing from lan network too.
    5. In Yast2>users and group management, add yourself to avahi and lp groups.
    These have allowed me the share my printer and print to lan systems.
    Just felt like sharing my experience

  4. #4

    Default Re: openSuSE 13.1: Print server (cupsd) refuses to accept print jobs from remote cupsd

    Are there any ramifications when upgrading? I'm asking, because the print server is also accessed from a Windoze box via IPP.
    In case there are no problems to be expected I think I'm going to upgrade. Right now I'm experiencing severe trouble when attempting to print from an application (so far Gwenview and gimp have failed me, where Gwenview locked up altogether and the print dialog of gimp refused to work), although committing the test page from YaST and issuing print jobs via lpr work fine.

    As for gimp, although it is able to discover the remote printers, it refuses to send any data and prefers to lock up the print dialog, which requires that it be killed with CTRL-ALT-ESC.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •