From owner-freebsd-questions Sat Jun 6 17:37:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA17036 for freebsd-questions-outgoing; Sat, 6 Jun 1998 17:37:04 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from huron.nvl.virginia.edu (adrian@huron.nvl.Virginia.EDU [128.143.244.43]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17026 for ; Sat, 6 Jun 1998 17:36:56 -0700 (PDT) (envelope-from adrian@nvl.virginia.edu) Received: from localhost (adrian@localhost) by huron.nvl.virginia.edu (8.8.6 (PHNE_14041)/8.8.6) with SMTP id UAA01582 for ; Sat, 6 Jun 1998 20:36:55 -0400 (EDT) Date: Sat, 6 Jun 1998 20:36:32 -0400 (EDT) From: Adrian Filipi-Martin Reply-To: Adrian Filipi-Martin To: Ritwik Bhattacharya Subject: Re: Using lpd to control access to printer In-Reply-To: <3.0.1.32.19980606193701.0091aa80@soham.dbrci.blr.daimlerbenz.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 6 Jun 1998, Ritwik Bhattacharya wrote: > I have an HP-Laserjet printer connected to a WinNT workstation with TCP/IP > printing service running. I have configured my FreeBSD box to use this > printer, and all users share this printer thrugh the BSD box. I also have > samba installed on the BSD box. > > I want to get accounting information for all jobs sent to the printer. This > is how the entry in /etc/printcap looks : > > rp|remote printer:\ > :lp=:rm=hamsadhwani:rp=lipi:pw=80:pl=65:sd=/var/spool/lpd:\ > :if=/usr/libexec/lpr/lpf:af=/var/spool/lpd/account: > > According to the handbook, that's all it should take. But the following > command > > pac -Prp > > always gives this output : > > Login pages/feet run price > > total 0.00 0 $ 0.00 > > What is wrong ? Did you enable accounting at boot time? Check /etc/rc.conf and ensure that "accounting_enable" is set to "YES". I do not have accounting enabled and I get the same output as you do. Adrian -- adrian@virginia.edu ---->>>>| If I were stranded on a desert island, and System Administrator --->>>| I could only have one OS for my computer, Neurosurgical Visualization Lab ->>| it would be FreeBSD. Think about it..... http://www.nvl.virginia.edu/ ->| http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message