It turned out that I set the setuid bit on different file from the one I launched with NSTask.
This  took me about 3 hours to realize, sorry :)

On Mar 14, 2009, at 2:24 AM, Mudi Dandan wrote:

Hi All,

I'm developing a setuid tool for my application and seems that NSTask doesn't respect the setuid bit and the effective uid remains 501. However when launching the tool from the terminal the effective uid is 0 as expected.
What am i missing?

Mudi
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/mudi%40binarynights.com

This email sent to m...@binarynights.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to