From owner-freebsd-ports@FreeBSD.ORG Tue Jul 4 16:30:04 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D85516A4DF for ; Tue, 4 Jul 2006 16:30:04 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94AFA43D79 for ; Tue, 4 Jul 2006 16:29:50 +0000 (GMT) (envelope-from freebsd-ports@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fxnjx-0007cC-Iy for freebsd-ports@freebsd.org; Tue, 04 Jul 2006 18:27:09 +0200 Received: from p548fc74e.dip.t-dialin.net ([84.143.199.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jul 2006 18:27:09 +0200 Received: from rotkap by p548fc74e.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jul 2006 18:27:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: Heino Tiedemann Date: Tue, 04 Jul 2006 18:25:27 +0200 Organization: yes Lines: 82 Message-ID: References: <449DE614.3040204@spamcop.net> <449F43EF.6030107@spamcop.net> <200607011444.36821.david.marec@free.fr> <44A97652.7070003@freebsd.org> <44A9D741.8030909@spamcop.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p548fc74e.dip.t-dialin.net User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (berkeley-unix) X-Face: v6Lci{Mw=kwHf$`7C?L-U#BHn7O\wqF-1qg#Vk%}nUQv\i^mM/.p=wU+cr)yXf#Ob+foOOxW; ir"QI!|25wG3`ywF)yh~@V.kKtr.qp+v.R; w?c@ZzM#!'/7r_+)$NjMN:]qo-]`&z~KlP}|cERO'%s9":6\ZnN/O Subject: Re: print/cups-base 1.2.0_2 and locally connected printer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rotkap@gmx.de List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 16:30:04 -0000 Rick Voland wrote: > Heino Tiedemann wrote: >> "Bruce A. Mah" wrote: >> >>> If memory serves me right, David MAREC wrote: >>>> Is there new device policies defined by cups ? >>>> >>> I noticed that the cups port now installs a cups user and group. I >>> infer from that change that some portion of cups now runs as a >>> non-privileged user, and that if you're driving a parallel port, it >>> needs to writable (readable too?) by the new cups user. >>> >>> (I encountered this problem on my RELENG_6/i386 print server machine, >>> made /dev/lpt0 owned by cups:cups, and it worked. >> >> root:cups is also workig (rw-rw----). >> >> Heino >> >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >> > > > > > > You may want to read > > http://groups.google.com/group/lucky.freebsd.ports.bugs/browse_thread/thread/2afcd691d1fa4207/e74721b94f2b02a6?lnk=st&q=freebsd+cups&rnum=7#e74721b94f2b02a6 > > This message suggests a solution that involves changing permissions on > /dev/lpt* > (also an issue for usb printers) > > -------------begin quote > > > Add following lines to /etc/devfs.rules: > > [system=10] > add path 'lpt*' mode 0660 group cups > > And following to /etc/rc.conf: > > devfs_system_ruleset="system" > > > -------------end quote I found 2 Solutions fpr the permissions: Solution a) ,---- | I've added the following to /etc/devfs.conf: | own lpt0 root:cups | perm lpt0 0660 `---- Solution b) ,---- | Add following lines to /etc/devfs.rules: | | [system=10] | add path 'lpt*' mode 0660 group cups | | And following to /etc/rc.conf: | | devfs_system_ruleset="system" `---- Is there one way to prefer? Heino