[MonoDevelop] Inappropriate permissions on device!
Tom Spink
tspink at gmail.com
Wed Mar 10 06:39:48 EST 2010
On 10 March 2010 08:10, coolnumber9 <kristoffer.amora at gmail.com> wrote:
> Hi, How can I configure MonoDevelop IDE to Run/Debug with sudo permissions?
> I have a program which communicates with an FTDI USB device using libftdi.
> Every time I run or debug using the IDE, I get the following message:
> Unhandled Exception: System.Exception: inappropriate permissions on device!
> In order for me to run or test the executable, I'd go to the Terminal and
> type "sudo mono helloworld.exe". I'd want to debug the code line by line but
> before I could step into the code, unhandled exceptions comes up. Is there
> any way to configure the debugger with superuser permissions? What could be
> the problem here? Note: I'm new to Linux and Mono. Your help will be very
> much appreciated. Thanks! Kristoffer
Hi Kristoffer,
Running applications as root is considered bad practice. It's much
better to adjust the permissions of a device to allow your user to
access it, rather than allowing your program to run in the context of
the superuser and therefore have access to everything.
This reduces the risk of causing serious damage when your program
breaks, or does something it's not supposed to.
So, the best approach is to alter the settings on the device node that
corresponds to your FTDI device. You could set it to allow everyone
full access.
--
Tom Spink
More information about the Monodevelop-list
mailing list