[Mono-list] setuid behavior?

Ian Norton inorton at gmail.com
Fri Sep 13 05:51:52 UTC 2013


For setuid on the program to work you'd have to setuid mono itself.
Depending on your deployment scenario you could mkbundle your program and
setuid the result.


On 11 September 2013 23:32, mickeyf <mickey at thesweetoasis.com> wrote:

> I have an application that uses a udp socket. If I run it "sudo mono
> myapp.exe" it works fine. If I leave off the sudo it fails when attempting
> to bind the socket - this is not a surprise.
>
> However, when change the owner to root and setuid on myapp.exe, it still
> fails.
>
> Is this what I should expect, and what is the preferred way to run this
> without actually being root?
>
> thanks
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/setuid-behavior-tp4660850.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130913/91abb979/attachment.html>


More information about the Mono-list mailing list