[cups] Error in log and slow cups

Richard Pallett richardpallett at bigpond.com
Thu May 4 15:40:18 PDT 2017


thanx


On 05/05/2017 01:02 AM, Luiz Guilherme Nunes Fernandes wrote:
> I solved the problem partially updating the cups, but the errors still
> continue, i dont need with of authentication in cups.
>
> My config accuatly:
>
> #######################################################
> LogLevel warn
> PageLogFormat
>
> # Only listen for connections from the local machine.
> Listen localhost: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
> DefaultEncryption Never
>
> # Restrict access to the server...
> <Location />
>    Allow from all
> </Location>
>
> # Restrict access to the admin pages...
> <Location /admin>
>    Allow from all
> </Location>
>
> # Restrict access to configuration files...
> <Location /admin/conf>
>    Allow from all
> </Location>
>
> # Restrict access to log files...
> <Location /admin/log>
>    Allow from all
> </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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </Limit>
>
>    # Only the owner or an administrator can cancel or authenticate a job...
>    <Limit Cancel-Job CUPS-Authenticate-Job>
>      Allow from all
>    </Limit>
>
>    <Limit All>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </Limit>
>
>    # Only the owner or an administrator can cancel or authenticate a job...
>    <Limit Cancel-Job CUPS-Authenticate-Job>
>      Allow from all
>    </Limit>
>
>    <Limit All>
>      Allow from all
>    </Limit>
> </Policy>
>
> # Set the kerberized printer/job policies...
> <Policy kerberos>
>    # 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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </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>
>      Allow from all
>    </Limit>
>
>    # Only the owner or an administrator can cancel or authenticate a job...
>    <Limit Cancel-Job CUPS-Authenticate-Job>
>      Allow from all
>    </Limit>
>
>    <Limit All>
>      Allow from all
>    </Limit>
> </Policy>
>
> #######################################################
>
> Erros Again:
>
> E [04/May/2017:11:41:58 -0300] [Client 22] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:41:59 -0300] [Client 22] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:00 -0300] [Client 22] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:00 -0300] [Client 28] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:01 -0300] [Client 22] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:01 -0300] [Client 20] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:02 -0300] [Client 1] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:03 -0300] [Client 3] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:04 -0300] [Client 28] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:09 -0300] [Client 34] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:10 -0300] [Client 34] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:10 -0300] [Client 34] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:11 -0300] [Client 34] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:31 -0300] [Client 6] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:42:32 -0300] [Client 19] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:55:34 -0300] [Client 41] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:55:34 -0300] [Client 41] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:55:35 -0300] [Client 41] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:55:35 -0300] [Client 41] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:55:36 -0300] [Client 41] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:56:36 -0300] [Client 46] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:56:38 -0300] [Client 46] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:56:38 -0300] [Client 46] pam_authenticate() returned 7
> (Authentication failure)
> E [04/May/2017:11:56:39 -0300] [Client 46] pam_authenticate() returned 7
> (Authentication failure)
>
> 2017-05-03 14:37 GMT-03:00 Luiz Guilherme Nunes Fernandes <
> narutospinal at gmail.com>:
>
>> Hi, in log have several erros. i dont need authentication. i dont have
>> idea what is problem.
>>
>> E [03/May/2017:14:30:24 -0300] [Client 16] pam_authenticate() returned 7
>> (Authentication failure)
>> E [03/May/2017:14:30:27 -0300] [Client 19] pam_authenticate() returned 7
>> (Authentication failure)
>> E [03/May/2017:14:30:30 -0300] [Client 16] pam_authenticate() returned 7
>> (Authentication failure)
>> E [03/May/2017:14:30:33 -0300] [Client 16] pam_authenticate() returned 7
>> (Authentication failure)
>> E [03/May/2017:14:30:37 -0300] [Client 16] pam_authenticate() returned 7
>> (Authentication failure)
>>
>> my config:
>>
>> ##########################################################################
>> MaxLogSize 0
>> LogLevel warn
>>
>> Listen 127.0.0.1:631
>> Listen 10.1.1.75:631
>> Listen /var/run/cups/cups.sock
>>
>> Browsing On
>> BrowseLocalProtocols dnssd
>>
>> DefaultAuthType None
>>
>> WebInterface Yes
>> DefaultEncryption Never
>>
>> <Location />
>>    Allow from all
>> </Location>
>>
>> <Location /admin>
>>    Allow from all
>> </Location>
>>
>> <Location /admin/conf>
>>    Allow from all
>> </Location>
>>
>> <Policy default>
>>    JobPrivateAccess default
>>    JobPrivateValues default
>>    SubscriptionPrivateAccess default
>>    SubscriptionPrivateValues default
>>
>>    <Limit Create-Job Print-Job Print-URI Validate-Job>
>>      Allow from all
>>    </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>
>>      Allow from all
>>    </Limit>
>>
>>    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class
>> CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
>>      Allow from all
>>    </Limit>
>>
>>    <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>
>>      Allow from all
>>    </Limit>
>>
>>    <Limit Cancel-Job CUPS-Authenticate-Job>
>>      Allow from all
>>    </Limit>
>>
>>    <Limit All>
>>      Allow from all
>>    </Limit>
>> </Policy>
>>
>> <Policy authenticated>
>>    # Job/subscription privacy...
>>    JobPrivateAccess default
>>    JobPrivateValues default
>>    SubscriptionPrivateAccess default
>>    SubscriptionPrivateValues default
>>
>>    <Limit Create-Job Print-Job Print-URI Validate-Job>
>>       Allow from all
>>    </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>
>>     Allow from all
>>    </Limit>
>>
>>    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class
>> CUPS-Delete-Class CUPS-Set-Default>
>>      Allow from all
>>    </Limit>
>>
>>    <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>
>>      Allow from all
>>    </Limit>
>>
>>    <Limit Cancel-Job CUPS-Authenticate-Job>
>>     Allow from all
>>    </Limit>
>>
>>    <Limit All>
>>      Allow from all
>>    </Limit>
>> </Policy>
>>
>> --
>> <<<<<<<<<<<<<<<<<<<-----------------------------------------
>> -------------------------->>>>>>>>>>>>>>>>>>>
>>
>> < Disse-lhe Jesus: Eu sou o caminho, e a verdade e a vida; ninguém vem ao
>> Pai, senão por mim >
>>                                                               (João 14:6)
>>
>>                                                                      Att.
>>                                          ♪ ♫  Luiz Guilherme Nunes
>> Fernandes  ♫ ♪
>>
>> <<<<<<<<<<<<<<<<<<<-----------------------------------------
>> -------------------------->>>>>>>>>>>>>>>>>>>
>>
>
>



More information about the cups mailing list