From owner-freebsd-usb@freebsd.org Tue Sep 18 09:00:54 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83F6710986BB for ; Tue, 18 Sep 2018 09:00:54 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EEF1D86351 for ; Tue, 18 Sep 2018 09:00:53 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id u12-v6so1193799wrr.4 for ; Tue, 18 Sep 2018 02:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=GYBEICeFP8U8b9b6eMU5mSg92Jp6Z503vd07QkQSSYA=; b=Y5OjvO1VE11j5sRgBLgrsEn8vlI+jasPqf/eILXbKkrFmJxF44NLnWW6iopopn51zW 4nP7fDqjouDvyTu4v78Z+WjIfq7VjX9Kmtqqed4WvAORyhD64jzUpvxfZ0PUUAkkBa7A wAQsxRBvZde9MHBt9l6ONX2hFF21JEAPexbDIiDNmD4RQkRqQ0TVw2nZkVx+TaSE8K67 wxrq5xYE2d6yIW/iq7hK69iBaG64reG1Q5sVDtjgDozl6uWfXZuRzkz6NnF5ki2b/F0c fZeIsJHM4oGTz2IUSqusAOkBZuru4CK+EK65wLnV58pgU+BAE4e9OAm/E3LMGZFy+uI4 8Gdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=GYBEICeFP8U8b9b6eMU5mSg92Jp6Z503vd07QkQSSYA=; b=TWUXg1hNN00DFL9zD2yEAyggiKRm4RGvvYVYWNRTKzxMGx0f+TpJA13OkDiFRI55+V W2xdArKF+jb/fO0gcVFs6kF/l+gNRe8EQudF+49sJGYoU+93Mc0D9SzOtDAt5r4/Tar6 y68VUZhU4TEQTaRHPd7RJ0JgqKLEEvUkfPc0f1l8h3Zpjps7SW2Gl8KjWFak+BOJZHvt kpb1m15RSs9WNU+/c5pEj47pwkgYhrsGapi3IuxjiqyY6FSc39zKRBvKvqMcw6vJCDDC R2/LxMe9C6l1p+SMRABd7p7jbW+9LSXUV5vpQoJRON15JrsPg+Bpovu+t1JvHQ8CqV2n IepA== X-Gm-Message-State: APzg51DTi8EZxYJ0b1UOq+ftxCylAG9tdDzo/DSvFSVRbBvOTvbqob/1 x/yRzwMUMXge+7vXels9oYY= X-Google-Smtp-Source: ANB0VdY/WXiWUIIm0KLB+gzZEygW8Tk2oSFEiyOn73uy5Jfv9gebjHKYoWBCTE6vhPjKY2+anVgJmg== X-Received: by 2002:adf:ee86:: with SMTP id b6-v6mr21899675wro.242.1537261252890; Tue, 18 Sep 2018 02:00:52 -0700 (PDT) Received: from ernst.home (p5B02380D.dip0.t-ipconnect.de. [91.2.56.13]) by smtp.gmail.com with ESMTPSA id i4-v6sm13953033wrs.85.2018.09.18.02.00.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Sep 2018 02:00:52 -0700 (PDT) Date: Tue, 18 Sep 2018 11:00:51 +0200 From: Gary Jennejohn To: shreyank amartya Cc: hps@selasky.org, freebsd-usb@freebsd.org Subject: Re: usbconfig lack of device or permission Message-ID: <20180918110051.4904ba9b@ernst.home> In-Reply-To: References: <9a50285b-44a7-d8c2-3c42-ed282b0a408d@selasky.org> <0e799c90-ee0b-3b92-acda-8efee6eedc68@selasky.org> <71f67595-45a1-9048-31b8-e32eb3bb74de@selasky.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2018 09:00:54 -0000 On Tue, 18 Sep 2018 12:14:29 +0530 shreyank amartya wrote: > Okay, so I'm able to use usbconfig once I chown /dev/usb/*. I don't > understand why adding my user to operator group is not enough instead of > chowning everything. > chown is the wrong approach. You need to chmod 660 all the entries under /dev/usb and add yourself to the operator group. This is why adding yourself to the operator group does not normally work: ls -l /dev/usb/* crw------- 1 root operator 0x37 Sep 18 08:43 /dev/usb/0.1.0 crw------- 1 root operator 0x7e Sep 18 08:43 /dev/usb/0.1.1 crw------- 1 root operator 0x8d Sep 18 08:43 /dev/usb/0.2.0 [etc] Only root has read/write permission. The chmod also gives the operator group read/write permission. > On Mon, Sep 17, 2018 at 4:51 PM shreyank amartya > wrote: > > > > ^^ this is not root :-) > > If I log in as root, usbconfig works. I want to make it work when i'm > > logged in as a normal user (amd). > > > > > Expected, unless you chown the packet filtering devices. > > Please elaborate on how I can i do this? > > > > On Mon, Sep 17, 2018 at 4:39 PM Hans Petter Selasky > > wrote: > > > >> On 9/17/18 12:25 PM, shreyank amartya wrote: > >> > amd@amd-sham:~ % whoami > >> > amd > >> ^^ this is not root :-) > >> > >> > > >> > amd@amd-sham:~ % usbdump -i usbus0 -s 255 -f 5 > >> > usbdump: Could not open BPF device: Permission denied > >> > >> Expected, unless you chown the packet filtering devices. > >> -- Gary Jennejohn