[Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example udev rules file, call it 10-libusb.rules SUBSYSTEM==usb, ENV{DEVTYPE}==usb_device, GROUP=libusbusers, MODE=0664 Example script setup.sh in same

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 7:25 PM, David Grant wrote: Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example udev rules file, call it 10-libusb.rules SUBSYSTEM==usb, ENV{DEVTYPE}==usb_device,

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden lists.tor...@gmail.com wrote: On Tue, Oct 30, 2012 at 7:25 PM, David Grant wrote: cp $SCRIPT_DIR/10-libusb.rules /etc/udev/rules.d/ echo In order for these changes to take effect you must restart your computer No, rebooting is not necessary.

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Peter Stuge
David Grant wrote: Rebooting is necessary for the add user to group change to take effect. Once the user has been added to the group, it's very easy to upgrade a running shell to use the new gid: exec su ${USER} (What it does is of course to *replace* the current shell with a new shell, but

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 3:29 PM, Peter Stuge pe...@stuge.se wrote: David Grant wrote: Rebooting is necessary for the add user to group change to take effect. Once the user has been added to the group, it's very easy to upgrade a running shell to use the new gid: exec su ${USER} (What it

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 2:25 AM, David Grant davidgr...@gmail.com wrote: Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 6:31 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 2:25 AM, David Grant davidgr...@gmail.com wrote: Could someone with write access to the libusbx wiki add this to the Can I run