From owner-freebsd-usb@FreeBSD.ORG Sun Sep 14 07:04:29 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 205C5F7D for ; Sun, 14 Sep 2014 07:04:29 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6F394ECB for ; Sun, 14 Sep 2014 07:04:27 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA22810; Sun, 14 Sep 2014 10:04:26 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1XT3rG-000Ex7-CR; Sun, 14 Sep 2014 10:04:26 +0300 Message-ID: <54153DC2.1030505@FreeBSD.org> Date: Sun, 14 Sep 2014 10:03:30 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Volodymyr Kostyrko , freebsd-usb@FreeBSD.org Subject: Re: usb printer vs cups References: <54133325.9070302@FreeBSD.org> <541353BF.5080608@b1t.name> In-Reply-To: <541353BF.5080608@b1t.name> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 07:04:29 -0000 On 12/09/2014 23:12, Volodymyr Kostyrko wrote: > On 12.09.2014 20:53, Andriy Gapon wrote: >> >> From my experience I think that cupsd executes backend tools with all uids and >> gids set to cups and no supplementary groups. In the case of USB printers the >> backends need to access /dev/usbctl and /dev/usb/foobar that corresponds to a >> printer. That means that the access to those devices must be somehow granted to >> cups:cups. >> How do people solve this? What kind of permissions / configuration do you use? > > devfs Yes, devfs. So how exactly do you configure permissions, ownerships? >> P.S. >> Maybe I over-generalized the issue to all USB printers. My personal experience >> is with an HP printer handled by hplip / hplip-plugin. > > Personally I prefer using stock lpd for those, it can be easily integrated with > foomatic hpijs. > -- Andriy Gapon