From owner-freebsd-usb@FreeBSD.ORG Fri Sep 12 20:12:52 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE9CEEEF; Fri, 12 Sep 2014 20:12:52 +0000 (UTC) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A667217; Fri, 12 Sep 2014 20:12:51 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id gi9so1618644lab.24 for ; Fri, 12 Sep 2014 13:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=KNZx2LJtxQgGUh6go/0NZ22yGrSnBzZ/yRSFZ+zM3pE=; b=XF8uefadYksXx6J7bTGZxH6RDH/OX5pHMbexW/h9aIknmlcIb7h0H8hXDr9wQajjes YIFR7by0jmjReAh3PnqRwxVXiiayOYZlcWk9fwkDUsb8Ye2f/wA+d+zcGdxUolljcedx 6pGHipHRZatayLdv1BmAFUqSolwk/iFd2ux/cZJawAq91QO+wPqKeA1HWAoVviDm41eK lOAVvqzYOS+LaUBDgslBzGPp4SzKp7NPlUx6pNV7RRPULN9YM6Fgja2/CGm/AjN8trRu QRKvjQsDWQ/GLJKJ7kROSI+ai331gN95ZzjO7taYSo3xzXBeUDqYtbK6AFKPj/OAPxv1 /gcg== X-Received: by 10.112.148.133 with SMTP id ts5mr10878874lbb.45.1410552769746; Fri, 12 Sep 2014 13:12:49 -0700 (PDT) Received: from limbo.b1t.lan (167.203-pool.nikopol.net. [213.111.203.167]) by mx.google.com with ESMTPSA id pr7sm1658133lbc.18.2014.09.12.13.12.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Sep 2014 13:12:49 -0700 (PDT) From: Volodymyr Kostyrko X-Google-Original-From: Volodymyr Kostyrko Message-ID: <541353BF.5080608@b1t.name> Date: Fri, 12 Sep 2014 23:12:47 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Andriy Gapon , freebsd-usb@FreeBSD.org Subject: Re: usb printer vs cups References: <54133325.9070302@FreeBSD.org> In-Reply-To: <54133325.9070302@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Fri, 12 Sep 2014 20:12:52 -0000 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 > 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. -- Sphinx of black quartz judge my vow.