From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 16:36:36 2012 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 D718A1065689 for ; Thu, 19 Jul 2012 16:36:36 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id EDD6E8FC18 for ; Thu, 19 Jul 2012 16:36:35 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q6JGaYHA017519; Thu, 19 Jul 2012 18:36:34 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q6JGaYSv017516; Thu, 19 Jul 2012 18:36:34 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 19 Jul 2012 18:36:34 +0200 (CEST) From: Wojciech Puchar To: Konrad Heuer 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Thu, 19 Jul 2012 18:36:34 +0200 (CEST) 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:36:37 -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 > This is exactly what i asked for. Thank you very much for help.