• 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: CGIs with OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGIs with OSX


  • Subject: Re: CGIs with OSX
  • From: T&B <email@hidden>
  • Date: Mon, 2 Apr 2001 18:01:32 +1000

Not really a problem, but a security thing.

I figured it was a deliberate limitation, but we need a way around it (as securely as possible). So please bear with my term "problem" :-)

Apache won't execute files
located willy-nilly around the file systems. It's a matter of putting
copies of what you do want it to be able to run in the proper place.

You can emulate the problem, by logging in as www (the user that runs apache) and trying the osascript command. You have to make it possible for www to log in first (giving it a password and a shell script, such as in NetInfo.

If you then try:

/usr/bin/osascript '2+3'

you get:

kCGSErrorIllegalArgument : CGSNewConnection cannot get connection port
kCGSErrorIllegalArgument : CGSNewConnection cannot get connection port
kCGSErrorInvalidConnection : CGSGetEventPort: Invalid connection

So, it seems that www has permission to run osascript, but some components are protected. How do we give access to them?

Tom
T&B
http://www.tandb.com.au/applescript/


  • Prev by Date: Re: CGIs with OSX
  • Next by Date: Re: CGIs with OSX
  • Previous by thread: Re: CGIs with OSX
  • Next by thread: Re: CGIs with OSX
  • Index(es):
    • Date
    • Thread