Skip navigation.
 
mlRe: Environment/permissions on NSTask-launched app
FROM : Brad Peterson
DATE : Tue Jul 25 10:47:12 2006

--- Sherm Pendley <<email_removed>> 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

Related mailsAuthorDate
mlEnvironment/permissions on NSTask-launched app Brad Peterson Jul 19, 03:35
mlRe: Environment/permissions on NSTask-launched app Sherm Pendley Jul 19, 19:41
mlRe: Environment/permissions on NSTask-launched app Brad Peterson Jul 20, 02:17
mlRe: Environment/permissions on NSTask-launched app Brad Peterson Jul 20, 02:26
mlRe: Environment/permissions on NSTask-launched app Andrew Farmer Jul 20, 04:10
mlRe: Environment/permissions on NSTask-launched app Bill Bumgarner Jul 20, 04:27
mlRe: Environment/permissions on NSTask-launched app Sherm Pendley Jul 20, 22:08
mlRe: Environment/permissions on NSTask-launched app Brad Peterson Jul 21, 04:36
mlRe: Environment/permissions on NSTask-launched app Andrew Farmer Jul 21, 05:23
mlRe: Environment/permissions on NSTask-launched app Sherm Pendley Jul 21, 17:23
mlRe: Environment/permissions on NSTask-launched app Brad Peterson Jul 25, 10:47
mlRe: Environment/permissions on NSTask-launched app Andrew Farmer Jul 25, 22:20
mlRe: Environment/permissions on NSTask-launched app Brad Peterson Jul 26, 02:26