Re: Environment/permissions on NSTask-launched app
Re: Environment/permissions on NSTask-launched app
- Subject: Re: Environment/permissions on NSTask-launched app
- From: Brad Peterson <email@hidden>
- Date: Tue, 25 Jul 2006 01:47:12 -0700 (PDT)
--- Sherm Pendley <email@hidden> wrote:
> Isn't that just what Brad's trying to do? The parent
> process that's
> launching his app is running as root, and is not
> supposed to run his
> app as root. Geteuid() returns 501, but trying to
> access AddressBook
> gives him the same error it does if he tries to run
> his app as root.
> He doesn't get that error if he runs it normally.
That's exactly it. You've got it. (Thanks for sticking
it out.)
> In other words, he's not trying to run his app as
> root, he's trying
> to figure out what the parent app is doing that's
> triggering this error.
>
> Brad, two questions: What does NSUserName() and
> NSHomeDirectory()
> give you? And, what's the parent app?
Unfortunately, they also appear to give the correct
(that is, non-root user) information. The parent app
is a server that communicates using a known network
port, and therefore (so it's been explained to me)
must run as root.
I'd change the port if I could, but it was chosen for
us by the clients we need to support, sadly.
Thanks,
B
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden