Re: Regarding setuid Problem on Mac OS X 10.2
Re: Regarding setuid Problem on Mac OS X 10.2
- Subject: Re: Regarding setuid Problem on Mac OS X 10.2
- From: Quinn <email@hidden>
- Date: Fri, 18 May 2007 09:46:22 +0100
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).
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.
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.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden