Re: setuid to root App cannot compile NSAppleScript
Re: setuid to root App cannot compile NSAppleScript
- Subject: Re: setuid to root App cannot compile NSAppleScript
- From: Dave Camp <email@hidden>
- Date: Thu, 11 Dec 2003 08:12:21 -0800
I would expect that trying to run an AppleScript as root would be a
major security violation.
Why do you want to do that?
Dave
On Dec 11, 2003, at 1:35 AM, Lorenzo wrote:
Hi list,
I use to make my application run an AppleScript like this:
----------------
tell application "Finder"
beep
end tell
----------------
If I login on my machine as simple user (administrator), it works fine.
If I login on my machine as "root" user, it works fine.
If I login on my machine as simple user (administrator), and I run my
application with setuid = 0 - that is with root privileges -
the AppleScript doesn't compile. It returns the error -2709
I do this:
as = [[[NSAppleScript alloc] initWithSource:asText] autorelease];
ok = [as compileAndReturnError:&asError];
What should I do in order to fix the problem?
Thank you.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.