• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Environment/permissions on NSTask-launched app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Environment/permissions on NSTask-launched app
      • From: Andrew Farmer <email@hidden>
References: 
 >Re: Environment/permissions on NSTask-launched app (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Filtering NSTableView core data
  • Next by Date: Re: Core Data 4GB limit (SQLite backend)?
  • Previous by thread: Re: Environment/permissions on NSTask-launched app
  • Next by thread: Re: Environment/permissions on NSTask-launched app
  • Index(es):
    • Date
    • Thread