From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 16:31:54 2012 Return-Path: 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 00BFF1065670 for ; Thu, 19 Jul 2012 16:31:54 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) by mx1.freebsd.org (Postfix) with ESMTP id B1FE38FC16 for ; Thu, 19 Jul 2012 16:31:53 +0000 (UTC) Received: from gwdu60.gwdg.de ([134.76.8.60]) by mailer.gwdg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Srsvn-0003QE-VS; Thu, 19 Jul 2012 17:46:24 +0200 Date: Thu, 19 Jul 2012 17:46:23 +0200 (CEST) From: Konrad Heuer To: Wojciech Puchar In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Level: / X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-questions@freebsd.org Subject: Re: lpd+samba question 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, 19 Jul 2012 16:31:54 -0000 I didn't try by myself, but what about something like print command = /usr/bin/lpr -P%p -J"%J" -U"%I" -r %f in smb.conf? I'm sorry to say that you additionally probably have to change /usr/src/usr.sbin/lpr/common_source/ctlinfo.c near line 87 to #define OTHER_USERID_CHARS "-_." /* special chars valid in a userid */ and to recompile lpd: cd /usr/src/usr.sbin/lpr make clean make install At less I've to do so to make the dot "." a valid character within a user name. Hope this helps and best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de On Thu, 19 Jul 2012, Wojciech Puchar wrote: > is there any simple way to get data about workstation that prints using lpd > from samba? > > what i need is to get IP/name of workstation that queued a print job to lpd > subsystem through samba. > > or is the only way to change everything to print to lpd directly using lpd > protocol? quite a bit of work but possible. > > I want to do accounting, not just how many pages are printed on each printer > (done), but WHO printed it. No problem for local user, but not with samba. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >