Hello team, <br><br>I recently posted a question about broken pipe error, and eventually found out what was actually happening. Now I'm looking for clues to why would this happen. <br><br>Problem: <br>CUPS 1.5.4 on Ubuntu 10.04 x64. User authenticates to CUPS admin interface, goes to Set Default Options menu for a printer, tries to change default options, received Broken Pipe error. <br>


<br>What I found out:<br>Child process admin.cgi reads all the options, tries to change them with "POST /admin/" request, and receives "401 Not authenticated" from the parent process. Parent process closes pipe (cups.sock) and child process cannot communicate to it anymore. "cupsdAuthorize: No authentication data provided." is written to the error_log. <br>


<br>Question: <br>Why would child process suddenly be unable to authenticate to parent? <br>It works fine if printer is added, removed, etc., but changing default options always fails with this error. User is a member of cups-admins group listed below.<br>

<br>Log excerpt:<br>
<font face="courier new, monospace">D [12/Oct/2012:15:32:30 +0000] [CGI] Setting options...<br>d [12/Oct/2012:15:32:30 +0000] cupsdReadClient(con=0x7f798af6c6c0(15)) con->http.error=0 con->http.used=0, con->http.state=0 con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=0, con->file=-1<br>


D [12/Oct/2012:15:32:30 +0000] cupsdReadClient: 15 POST /admin/ HTTP/1.1<br>D [12/Oct/2012:15:32:30 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"<br>d [12/Oct/2012:15:32:30 +0000] cupsdFindBest: uri = "/admin/"...<br>


d [12/Oct/2012:15:32:30 +0000] cupsdFindBest: Location /admin/conf Limit 7f<br>d [12/Oct/2012:15:32:30 +0000] cupsdFindBest: Location /admin Limit 7f<br>d [12/Oct/2012:15:32:30 +0000] cupsdFindBest: Location / Limit 7f<br>


d [12/Oct/2012:15:32:30 +0000] cupsdFindBest: best = /admin<br>d [12/Oct/2012:15:32:30 +0000] cupsdAuthorize: con->uri="/admin/", con->best=0x7f798ae895d0(/admin)<br>d [12/Oct/2012:15:32:30 +0000] cupsdAuthorize: Authorization=""<br>


D [12/Oct/2012:15:32:30 +0000] cupsdAuthorize: No authentication data provided.<br>d [12/Oct/2012:15:32:30 +0000] cupsdIsAuthorized: con->uri="/admin/", con->best=0x7f798ae895d0(/admin)<br>d [12/Oct/2012:15:32:30 +0000] cupsdIsAuthorized: level=CUPSD_AUTH_USER, type=None, satisfy=CUPSD_AUTH_SATISFY_ALL, num_names=4<br>


d [12/Oct/2012:15:32:30 +0000] cupsdIsAuthorized: auth=CUPSD_AUTH_ALLOW....<br>D [12/Oct/2012:15:32:30 +0000] cupsdIsAuthorized: username=""<br>d [12/Oct/2012:15:32:30 +0000] cupsdSendError(con=0x7f798af6c6c0(15), code=401, auth_type=0<br>


D [12/Oct/2012:15:32:30 +0000] cupsdSendHeader: 15 WWW-Authenticate: Basic realm="CUPS", trc="y"<br>D [12/Oct/2012:15:32:30 +0000] cupsdCloseClient: 15<br>D [12/Oct/2012:15:32:30 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"<br>


d [12/Oct/2012:15:32:30 +0000] cupsdRemoveSelect(fd=15)<br>D [12/Oct/2012:15:32:30 +0000] [CGI] cgiSetVariable: TITLE="Set Printer Options"</font><br><br>cupsd.conf:<br>================<br><font face="courier new, monospace">ConfigFilePerm 0644<br>


LogFilePerm 0644<br><br>MaxLogSize 1000000000<br>AccessLog syslog<br>PageLog syslog<br>LogLevel debug2<br><br>SystemGroup root cups-admins<br><br>Port 631<br>Listen /var/run/cups/cups.sock<br>SSLPort 443<br>ServerCertificate /etc/cups/ssl/server.crt<br>


ServerKey /etc/cups/ssl/server.key<br><br>MaxClients 2000<br>MaxClientsPerHost 10<br>MaxJobs 750<br>MaxJobsPerPrinter 75<br><br>DefaultAuthType Basic<br><br>ErrorPolicy retry-job<br><br><Location /><br>  Encryption Required<br>


</Location><br><br><Location /admin><br>  Encryption Required<br>  Require user @SYSTEM @printers-admins<br></Location><br><br><Location /admin/conf><br>  Encryption Required<br>  Require user @SYSTEM @printers-admins<br>


</Location><br><br><Policy default><br>  <Limit Send-Document Send-URI Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications CUPS-Move-Job CUPS-Get-Document><br>


    Require user @OWNER @SYSTEM<br>  </Limit><br><br>  <Limit Hold-Job Release-Job Restart-Job Purge-Jobs Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job><br>    Require user @OWNER @SYSTEM @printers-admins<br>


  </Limit><br><br>  <Limit Activate-Printer CUPS-Accept-Jobs CUPS-Add-Class CUPS-Add-Modify-Printer CUPS-Delete-Class CUPS-Delete-Printer CUPS-Reject-Jobs CUPS-Set-Default Deactivate-Printer Disable-Printer Enable-Printer Hold-New-Jobs Pause-Printer Pause-Printer-After-Current-Job Promote-Job Release-Held-New-Jobs Restart-Printer Resume-Printer Schedule-Job-After Set-Printer-Attributes Shutdown-Printer Startup-Printer><br>


    Require user @SYSTEM @printers-admins<br>  </Limit><br><br>  <Limit Cancel-Job CUPS-Authenticate-Job><br>    Require user @OWNER @SYSTEM @printers-admins<br>  </Limit><br><br>  <Limit All><br>

    Order deny,allow<br>
  </Limit><br></Policy></font><br>================