From owner-freebsd-desktop@FreeBSD.ORG Wed Sep 17 07:25:05 2014 Return-Path: Delivered-To: freebsd-desktop@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 917CD320; Wed, 17 Sep 2014 07:25:05 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5E62DF; Wed, 17 Sep 2014 07:25:04 +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 KAA23826; Wed, 17 Sep 2014 10:25:03 +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 1XU9bq-0008ud-M1; Wed, 17 Sep 2014 10:25:02 +0300 Message-ID: <5419372A.2050509@FreeBSD.org> Date: Wed, 17 Sep 2014 10:24:26 +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: Hans Petter Selasky , freebsd-stable List , FreeBSD Current Subject: Re: Fwd: usb printer vs cups References: <54133325.9070302@FreeBSD.org> <5419238E.8050708@FreeBSD.org> <5419285D.8020909@selasky.org> <54193273.6080709@FreeBSD.org> In-Reply-To: <54193273.6080709@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: freebsd-desktop@FreeBSD.org X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 07:25:05 -0000 On 17/09/2014 10:04, Andriy Gapon wrote: > On 17/09/2014 09:21, Hans Petter Selasky wrote: >> Instead make cups-base install the attached devd configuration file in >> /usr/local/etc/devd/ which does the needed chown for printers only. > > The problem is that my printer does not work if I also do not change permissions > on /dev/usbctl. But I do not really want /dev/usbctl to be owned by cups as > there can be other services / users that need access to usbctl. Actually I take this back. My /dev/usbctl was not world readable as it should be by default. Not sure why I changed its permissions from 0644 to 0660, probably a litle bit of paranoia. Now that I changed the permissions to 0664 and installed your script printing works without problems. Thanks! > Is there anything smarter than mucking with device ownership? > > In other words, I have no problem granting cups user or group a full access to > all USB devices. I have a problem with changing owner or group of USB devices > to cups, because that interferes with other accesses to those devices. > -- Andriy Gapon