Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Dec 2001 15:05:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Dec 2001 15:05:16 -0500 Received: from auucp0.ams.ops.eu.uu.net ([195.129.70.39]:24202 "EHLO auucp0.ams.ops.eu.uu.net") by vger.kernel.org with ESMTP id ; Thu, 6 Dec 2001 15:04:28 -0500 Date: Thu, 6 Dec 2001 21:01:59 +0100 (CET) From: kees To: Subject: Q: device(file) permissions for USB Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463801846-915869288-1007668919=:13843" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1463801846-915869288-1007668919=:13843 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, I have been playing with an USB camera. I've run into the following problem: The (default?) permissions for /proc/bus/usb/001/011 (and others) are 0644. This makes the ioctl (see attached trace to fail). So I have to: either chmod the usb device file each time I unplug and replug the camera OR make the pencam program SUID root, which is neither comfortable. Is there a way to affect the default permissions for the USB devices? regards Kees ---1463801846-915869288-1007668919=:13843 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=TRACE_1 Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=TRACE_1 b3BlbigiL3Byb2MvYnVzL3VzYi8wMDIvMDAxIiwgT19SRE9OTFkpID0gNQ0K cmVhZCg1LCAiXDIyXDFcMFwxXHRcMFwwXDEwXDBcMFwwXDBcMFwwXDBcMlwx XDEiLCAxOCkgPSAxOA0KY2xvc2UoNSkgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgID0gMA0KaXBjX3N1YmNhbGwoMHg0LCAweDgwNGU1NjgsIDB4 NDAwLCAwKSAgID0gMA0KY2xvc2UoNCkgICAgICAgICAgICAgIC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Y2FtZXJhISFcbiIsIDI4KSA9IDI4DQpj bG9zZSg0KSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPSAwDQo= ---1463801846-915869288-1007668919=:13843-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/