Re: CGIs with OSX
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/