mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Hudson <jonathan@daria.co.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: Q: device(file) permissions for USB
Date: Thu, 06 Dec 2001 20:14:47 GMT	[thread overview]
Message-ID: <664.3c0fd1b7.a66fa@trespassersw.daria.co.uk> (raw)
In-Reply-To: <fa.ljcupnv.1ghotjk@ifi.uio.no>

In article <fa.ljcupnv.1ghotjk@ifi.uio.no>,
	kees <kees@schoen.nl> writes:
k>   This message is in MIME format.  The first part should be readable text,
k>   while the remaining parts are likely unreadable without MIME-aware tools.
k>   Send mail to mime@docserver.cac.washington.edu for more info.
k> 
k> ---1463801846-915869288-1007668919=:13843
k> Content-Type: TEXT/PLAIN; charset=US-ASCII
k> 
k> Hi,
k> 
k> I have been playing with an USB camera. I've run into the following
k> problem:
k> The (default?) permissions for /proc/bus/usb/001/011 (and others) are
k> 0644. This makes the ioctl (see attached trace to fail). So I have to:
k> either chmod the usb device file each time I unplug and replug the camera
k> OR make the pencam program SUID root, which is neither comfortable.
k> Is there a way to affect the default permissions for the USB devices?

Use hotplug to run a script to change the permissions when the device
is connected. Mail me off list for an example.

       reply	other threads:[~2001-12-06 20:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.ljcupnv.1ghotjk@ifi.uio.no>
2001-12-06 20:14 ` Jonathan Hudson [this message]
2001-12-06 21:30 ` Rene Rebe
2001-12-06 23:27   ` Greg KH
2001-12-06 23:37     ` Alexander Viro
2001-12-06 23:57     ` Rene Rebe
2001-12-07  0:09       ` Alexander Viro
2001-12-07  0:35         ` Rene Rebe
2001-12-07  0:20       ` Rene Rebe
2001-12-07  0:21       ` Richard Gooch
2001-12-06 23:45   ` Rene Rebe
2001-12-07  0:00     ` Greg KH
2001-12-07  0:11     ` Rene Rebe
2001-12-07  0:21       ` Greg KH
2001-12-06 20:01 kees

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=664.3c0fd1b7.a66fa@trespassersw.daria.co.uk \
    --to=jonathan@daria.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®