From owner-freebsd-questions@FreeBSD.ORG Thu May 3 20:02:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D669016A402 for ; Thu, 3 May 2007 20:02:42 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id B36C713C448 for ; Thu, 3 May 2007 20:02:42 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 30481 invoked from network); 3 May 2007 20:02:41 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 May 2007 20:02:41 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id C25132843A; Thu, 3 May 2007 16:02:39 -0400 (EDT) To: AN References: <20070502201724.O88357@neu.net> From: Lowell Gilbert Date: Thu, 03 May 2007 16:02:39 -0400 In-Reply-To: <20070502201724.O88357@neu.net> (AN's message of "Wed\, 2 May 2007 20\:41\:23 +0000 \(GMT\)") Message-ID: <44wszpu140.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: cups permission problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2007 20:02:43 -0000 AN writes: > I just installed cups 1.2.10 on FBSD 6.2 stable from ports. The > install completed successfully, however when I try to do anything > nothing works. After starting the cups daemon, I go to localhost:631 > and I can see the main page but when I try to add a printer the page > is blank. The following are excerpts from /var/log/cups/error_log: > > I [02/May/2007:22:44:46 +0300] Full reload complete. > I [02/May/2007:22:44:46 +0300] Listening to ::1:631 on fd 2... > I [02/May/2007:22:44:46 +0300] Listening to 127.0.0.1:631 on fd 3... > I [02/May/2007:22:44:46 +0300] Listening to /var/run/cups.sock on fd 4... > I [02/May/2007:22:45:04 +0300] commptr="?OP=add-printer" > I [02/May/2007:22:45:04 +0300] Started > "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=89759) > E [02/May/2007:22:45:04 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/header.tmpl" - Permission denied > E [02/May/2007:22:45:04 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/add-printer.tmpl" - Permission denied > E [02/May/2007:22:45:04 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/trailer.tmpl" - Permission denied > I [02/May/2007:22:48:13 +0300] Full reload complete. > I [02/May/2007:22:48:13 +0300] Listening to ::1:631 on fd 1... > I [02/May/2007:22:48:13 +0300] Listening to 127.0.0.1:631 on fd 3... > I [02/May/2007:22:48:13 +0300] Listening to /var/run/cups.sock on fd 4... > I [02/May/2007:22:53:32 +0300] commptr="?OP=add-printer" > I [02/May/2007:22:53:32 +0300] Started > "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=89770) > E [02/May/2007:22:53:32 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/header.tmpl" - Permission denied > E [02/May/2007:22:53:32 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/add-printer.tmpl" - Permission denied > E [02/May/2007:22:53:32 +0300] [CGI] Unable to open template file > "/usr/local/share/cups/templates/trailer.tmpl" - Permission denied > I [02/May/2007:22:55:10 +0300] Saving remote.cache... > I [02/May/2007:22:56:18 +0300] Full reload complete. > E [02/May/2007:22:56:19 +0300] Unable to bind socket for address > ::1:631 - > Address already in use. > E [02/May/2007:22:56:19 +0300] Unable to bind socket for address > 127.0.0.1:631 - Address already in use. > I [02/May/2007:22:56:19 +0300] Listening to /var/run/cups.sock on fd 2... > E [02/May/2007:22:56:19 +0300] cupsdStartBrowsing: Unable to bind > broadcast socket - Address already in use. > I [02/May/2007:22:58:22 +0300] Listening to ::1:631 (IPv6) > I [02/May/2007:22:58:22 +0300] Listening to 127.0.0.1:631 (IPv4) > I [02/May/2007:22:58:22 +0300] Listening to /var/run/cups.sock (Domain) > I [02/May/2007:22:58:22 +0300] Loaded configuration file > "/usr/local/etc/cups/cupsd.conf" > I [02/May/2007:22:58:22 +0300] Using default TempDir of > /var/spool/cups/tmp... > I [02/May/2007:22:58:22 +0300] Cleaning out old temporary files in > "/var/spool/cups/tmp"... > I [02/May/2007:22:58:22 +0300] Configured for up to 100 clients. > I [02/May/2007:22:58:22 +0300] Allowing up to 100 client connections > per host. > I [02/May/2007:22:58:22 +0300] Using policy "default" as the default! > I [02/May/2007:22:58:22 +0300] Full reload is required. > I [02/May/2007:22:58:22 +0300] Loaded MIME database from > /usr/local/etc/cups': 34 types, 38 filters... > I [02/May/2007:22:58:22 +0300] Loading job cache file > "/var/cache/cups/job.cache"... > I [02/May/2007:22:58:22 +0300] Full reload complete. > E [02/May/2007:22:58:22 +0300] Unable to bind socket for address > ::1:631 - > Address already in use. > E [02/May/2007:22:58:22 +0300] Unable to bind socket for address > 127.0.0.1:631 - Address already in use. > I [02/May/2007:22:58:22 +0300] Listening to /var/run/cups.sock on fd 2... > E [02/May/2007:22:58:22 +0300] cupsdStartBrowsing: Unable to bind > broadcast socket - Address already in use. > I [02/May/2007:22:58:48 +0300] commptr="list+1+0+requested-attributes=all" > I [02/May/2007:22:58:48 +0300] Started > "/usr/local/libexec/cups/daemon/cups-driverd" (pid=89822) > E [02/May/2007:22:58:48 +0300] [cups-driverd] Unable to open PPD > directory "/usr/local/share/cups/model": Permission denied > I [02/May/2007:22:59:38 +0300] commptr="list+1+0+requested-attributes=all" > I [02/May/2007:22:59:38 +0300] Started > "/usr/local/libexec/cups/daemon/cups-driverd" (pid=89823) > E [02/May/2007:22:59:38 +0300] [cups-driverd] Unable to open PPD > directory "/usr/local/share/cups/model": Permission denied > I [02/May/2007:22:59:52 +0300] commptr="list+1+0+requested-attributes=all" > I [02/May/2007:22:59:52 +0300] Started > "/usr/local/libexec/cups/daemon/cups-driverd" (pid=89824) > E [02/May/2007:22:59:52 +0300] [cups-driverd] Unable to open PPD > directory "/usr/local/share/cups/model": Permission denied > > I tried commenting out all security and authorization settings in the > conf file, but it did not help. I compared the settings on the files > and folders listed in the log file to another machine that is working > with cups and they all seem correct. Not sure what to try now, any > help would be really appreciated. Please let me know if there is any > more debug info needed. How do you try to start the daemon? If you haven't done so, use the script that the port installs.