From owner-freebsd-questions@FreeBSD.ORG Thu Dec 10 18:32:44 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3323F106568D for ; Thu, 10 Dec 2009 18:32:44 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (dns1.vizion2000.net [62.49.197.50]) by mx1.freebsd.org (Postfix) with ESMTP id A105C8FC12 for ; Thu, 10 Dec 2009 18:32:43 +0000 (UTC) Received: by dns1.vizion2000.net (Postfix, from userid 1001) id 5613A34D453; Thu, 10 Dec 2009 18:32:38 +0000 (GMT) From: David Southwell Organization: Voice & Vision To: freebsd-questions@freebsd.org Date: Thu, 10 Dec 2009 18:32:38 +0000 User-Agent: KMail/1.12.4 (FreeBSD/7.2-RELEASE-p3; KDE/4.3.4; amd64; ; ) References: <200912081040.02500.david@vizion2000.net> <200912101121.08760.david@vizion2000.net> In-Reply-To: <200912101121.08760.david@vizion2000.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912101832.38286.david@vizion2000.net> Cc: Michael Sweet , Robert Huff , Olivier Nicole , usleepless@gmail.com Subject: Re: CUPS & laserjet 2200dn with Jetdirect 610N on network - one remaining problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 18:32:44 -0000 I have had a posting on the Cups list from Michael Sweet who has suggested the problem is something to do with my pam configuration. Thanks in advance for further guidance: > Thanks Michael - it looks as though you may have put your finger on the > problem -- but I am not certain how to react to it!!! (see below) > > > On Dec 10, 2009, at 5:34 AM, David Southwell wrote: > > > Thanks to some help from people on one of the freebsd lists I have > > > finally succeeded in getting cups the server to communicate with the > > > printer and print. > > > HOWEVER!! > > > > > > One minor niggling problem remains. I still cannot communicate with the > > > cups management interface on http://localhost:631 due to password > > > authentication failure. So the title of this thread is still very > > > relevant. > > > > > > Thanks in advance for any help with the problem. > > > > > > To bring readers up to date: > > > > > > I try logging in as 'root' with correct root password in the login > > > dialogue. > > > > > > I altered the loglevel to debug and the output is at the end of this > > > post. > > > > > > It seems as though the cupsd is not receiving the input (probably due > > > to some config error on my part!). I have tried using a number of > > > different browsers but get the same result. > > > > > > Prior to testing I did: > > > > > > dns1# lppasswd -g wheel -a root > > > The standard cups error log showed > > > cupsdAuthorize: pam_start() returned 4 (system error)! > > > > OK, so you have a PAM configuration error most likely - check that the > > /etc/pam.d/cups file is consistent with the other PAM files in > > /etc/pam.d (i.e. using the correct security modules...) > > ahahahahaaaaaaaaaaaaaaaaa > There is no /etc/pam.d/cups file !! > > There is a > /usr/local/etc/pam.d/cups > > which has the following lines: > auth required pam_unknown.so nodelay > account required pam_unknown.so > > Shown below is ls -l for each directory! > > Wanted --- good model for pam.d/cups and where to put it!!! > > [NB This is a freebsd 7.2 p3 amd64 system with intel quad core.] > dns1# ls -l /etc/pam.d/ > total 38 > -r--r--r-- 1 root wheel 2907 May 1 2009 README > -rw-r--r-- 1 root wheel 322 May 1 2009 atrun > -rw-r--r-- 1 root wheel 199 May 1 2009 cron > -rw-r--r-- 2 root wheel 547 May 1 2009 ftp > -rw-r--r-- 2 root wheel 547 May 1 2009 ftpd > -rw-r--r-- 1 root wheel 467 May 1 2009 gdm_disabled > -rw-r--r-- 1 root wheel 365 May 1 2009 imap > -rw-r--r-- 1 root wheel 467 May 1 2009 kde > -rw-r--r-- 1 root wheel 374 May 1 2009 login > -rw-r--r-- 1 root wheel 662 May 1 2009 other > -rw-r--r-- 1 root wheel 319 May 1 2009 passwd > -rw-r--r-- 1 root wheel 365 May 1 2009 pop3 > -rw-r--r-- 1 root wheel 328 May 1 2009 rsh > -rw-r--r-- 1 root wheel 739 May 1 2009 sshd > -rw-r--r-- 1 root wheel 380 May 1 2009 su > -rw-r--r-- 1 root wheel 705 May 1 2009 system > -rw-r--r-- 1 root wheel 754 May 1 2009 telnetd > -rw-r--r-- 1 root wheel 532 May 1 2009 xdm > > dns1# ls -l /usr/local/etc/pam.d > total 16 > -r--r--r-- 1 root wheel 69 Dec 10 09:19 cups > -r--r--r-- 1 root wheel 672 Dec 7 10:06 gdm > -r--r--r-- 1 root wheel 98 Nov 29 17:42 gnome-screensaver > -r--r--r-- 1 root wheel 135 Nov 4 22:09 polkit > -r--r--r-- 1 root wheel 135 Dec 2 09:00 polkit-1 > -r--r--r-- 1 root wheel 399 Sep 27 18:20 sudo > -r--r--r-- 1 root wheel 399 Sep 27 18:20 sudo.default > -r--r--r-- 1 root wheel 98 Nov 5 03:22 xscreensaver > Maybe someone who is versed in the intricacies of pam.d on freebsd 7.2 p3 amd64 might be willing to point me in the right direction. Thanks David