site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com i.e setuid(uid) API is not working . Its return -1. The same code is working fine on High end but I got the problem on Mac OS X 10.2 series. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 17:16 +0530 17/5/07, subodh singh wrote: I got one problem on Macintosh Mac OS X 10.2.4, You should not support 10.2.4. Even if you want to support 10.2.x, you should only support the /last/ version of that train (10.2.8). Doing anything else is a waste of your time and, in the case of these older OS versions, is doing your users a disservice (the software updates contain vital changes, and by supporting anything other than the latest version you're encouraging folks not to update). So please advise and also suggest me some alternative way to achieve the same. When setuid fails, what's the value of errno? That should give you some idea as to what's going wrong. However, there's really only one common reason for setuid to fail: you don't have privileges. My guess that this isn't a problem with the setuid call, but with the infrastructure that you're using to run privileged code. Change your code to print the results from <x-man-page://2/getuid> and <x-man-page://2/geteuid> and see what you get. This email sent to site_archiver@lists.apple.com