From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N3vcW-0002Vd-F6 for garchives@archives.gentoo.org; Fri, 30 Oct 2009 17:50:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8905E0671; Fri, 30 Oct 2009 17:50:38 +0000 (UTC) Received: from mail-pz0-f199.google.com (mail-pz0-f199.google.com [209.85.222.199]) by pigeon.gentoo.org (Postfix) with ESMTP id B663EE0671 for ; Fri, 30 Oct 2009 17:50:38 +0000 (UTC) Received: by pzk37 with SMTP id 37so2058409pzk.10 for ; Fri, 30 Oct 2009 10:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=DdG1M2wtbsYKEohPCq75dA5FGtzPkEMa6GmFTJmg3ic=; b=vlHS3u3C1UadI/mINdk6if+99LNF9+S7zu8ulO5K3UK24x981iu93kmD8bVQsEkA8l HaJemUi1FA2SmX7ABwabPW9rPwuIYhTaotp6iHCxOYOOMchypLolNHERpG+1fFoo+Ul/ HoWFmpc2zKNkrUOnaDz3tv1eTd+C91LqWacH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KJ4aRf9EJOEzhb6R5G0uWWD6qTzT8wvAfO0FVPRa1902jJfwqMCo6Ctro7brxPbc1c Zc5p371j5DfFs6kbNjr6pX7cesrXyhPLiqkKmM19aIBJF/ovlK/QQfaog7fn9BkrxXlw ZUKoyjXZrRhEfMr/S4I464peVHYuRQLSQx/3g= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.142.4.41 with SMTP id 41mr194628wfd.123.1256925038273; Fri, 30 Oct 2009 10:50:38 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Oct 2009 10:50:38 -0700 Message-ID: Subject: Re: [gentoo-user] Whose bug is it? [was: hal greps my USB printer - help !] From: James Ausmus To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=00504502b4436a64bb04772aaad0 X-Archives-Salt: fa39b39e-237a-4baf-9354-918f608c87ee X-Archives-Hash: facfbdcc236b452b95e62a9ad0a1d287 --00504502b4436a64bb04772aaad0 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Oct 30, 2009 at 5:16 AM, Helmut Jarausch < jarausch@igpm.rwth-aachen.de> wrote: > After a long search on the net I've found out > that the permissions of the usb device are set wrong > (root.usb) > It looks like an UDEV rule installed by sane-backends > sets the user to root and the group to usb. > With these settings CUPS won't recognize/use the printer. > > I had to add the following rule to /etc/udev/rules.d/10-local.rules > (e.g.) > > ATTR{idVendor}=="0482", ATTR{idProduct}=="0015", MODE:="0777", > GROUP:="lp", USER:="lp", ENV{libsane_matched}:="yes" > > where one has to vary the idVendor and idProduct, of course. > > Even for a casual Gentoo user that's neither trivial nor comfortable. > If the printer breaks sometime one has to remember to change that rule. > And it wasn't easy to find that advice. > > Where should I report a bug to ? > To > net-print/cups > or > media-gfx/sane-backends > or where else? > Hmm, I'm not entirely convinced there is a bug here... I don't have your particular situation, but on my system, cupsd runs as root, which means that it should be able to access the device just fine, whether it's set up as lp or usb. Is it possible that the user that you are logged in as isn't a member of the "usb" group? -James > > Thanks for your help, > Helmut. > > > -- > Helmut Jarausch > > Lehrstuhl fuer Numerische Mathematik > RWTH - Aachen University > D 52056 Aachen, Germany > > --00504502b4436a64bb04772aaad0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Oct 30, 2009 at 5:16 AM, Helmut = Jarausch <jarausch@igpm.rwth-aachen.de> wrote:
After a long search on the net I've found out
that the permissions of the usb device are set wrong
(root.usb)
It looks like an UDEV rule installed by sane-backends
sets the user to root and the group to usb.
With these settings CUPS won't recognize/use the printer.

I had to add the following rule to /etc/udev/rules.d/10-local.rules
(e.g.)

ATTR{idVendor}=3D=3D"0482", ATTR{idProduct}=3D=3D"0015"= , MODE:=3D"0777",
=A0GROUP:=3D"lp", USER:=3D"lp", ENV{libsane_matched}:= =3D"yes"

where one has to vary the idVendor and idProduct, of course.

Even for a casual Gentoo user that's neither trivial nor comfortable. If the printer breaks sometime one has to remember to change that rule.
And it wasn't easy to find that advice.

Where should I report a bug to ?
To
net-print/cups
or
media-gfx/sane-backends
or where else?

Hmm, I'm not entirel= y convinced there is a bug here... I don't have your particular situati= on, but on my system, cupsd runs as root, which means that it should be abl= e to access the device just fine, whether it's set up as lp or usb. Is = it possible that the user that you are logged in as isn't a member of t= he "usb" group?

-James

=A0

Thanks for your help,
Helmut.


--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany


--00504502b4436a64bb04772aaad0--