Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 6:31 PM, Xiaofan Chen wrote: > On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen wrote: >> On Wed, Oct 31, 2012 at 2:25 AM, David Grant wrote: >>> Could someone with write access to the libusbx wiki add this to the >>> "Can I run Linux libusbx applications without root privil

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen wrote: > On Wed, Oct 31, 2012 at 2:25 AM, 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 "1

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 2:25 AM, 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 3:29 PM, Peter Stuge 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 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,

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden wrote: > 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 "1

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden 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. The rules.d di

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Philip.Joslin
er 30, 2012 2:44 PM To: libusbx-devel@lists.sourceforge.net Subject: Re: [Libusbx-devel] Example udev rules file 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 withou

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"

[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" i