• 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: setuid to root App cannot compile NSAppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >setuid to root App cannot compile NSAppleScript (From: Lorenzo <email@hidden>)

  • Prev by Date: How Insert values into a NSCell of NSTableView?
  • Next by Date: Re: How Insert values into a NSCell of NSTableView?
  • Previous by thread: setuid to root App cannot compile NSAppleScript
  • Next by thread: Re: setuid to root App cannot compile NSAppleScript
  • Index(es):
    • Date
    • Thread