[Lazarus] run program in ide with sudo for debug purpose

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Feb 27 11:07:02 CET 2012


Henry Vermaak wrote:
> On 26/02/12 13:29, Mark Morgan Lloyd wrote:

>> I've had this sort of requirement in the past, specifically when using
>> libusb (i.e. the program needed sufficient privilege to grab the device).
> 
> You need udev rules that set the user/group permissions for the devices 
> that you use.  You don't need to run as root.

I'd be happy to be proven wrong, but my understanding is that you do 
since there is one specific kernel call (in effect, telling the kernel 
to release an unrecognised device to an unprivileged program) that won't 
work otherwise.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list