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 <mic...@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@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list