filepro and file permissions
Howard Wolowitz
howiewz at beonthenet.com
Fri Apr 27 14:30:39 PDT 2007
----- Original Message -----
From: "Dan Coutu" <coutu at snowy-owl.com>
To: "Bob Stockler" <bob at celestial.com>; <filepro-list at lists.celestial.com>
Sent: Friday, April 27, 2007 4:53 PM
Subject: Re: filepro and file permissions
> Dan Coutu wrote (on Thu, Apr 26, 2007 at 04:18:34PM -0400):
>
> | How can I get filePro to set different file permissions than the
> | default? I'm running filePro on a red hat enterprise linux 4 system. It
> | insists on creating files with permissions that allow only the filepro
> | user to read/write the file and locks out everyone else. That's nice
> | sometimes and right now is a total thorn in my side. I need to allow
> | files created to be a least group read/write-able.
>
The answer is to run a cgi shell script that creates a temporary file, opens
the permissions on it and sends its file name to the filepro process in an
environment variable. Then the filepro process exports the data to that
file. After filepro completes the script can send the file back to the
server and then delete it.
I.E.:
#!/bin/bash
export TMPFILE=/u/appl/fpmerge/$$.wp
> $TMPFILE
chmod 666 $TMPFILE
rclerk ...
cat $TMPFILE
rm -f $TMPFILE
In the processing above the export would look something like:
export ascii out=(getenv("TMPFILE")) r=\n f=\n
Does that do what you want? It's how fpweb works.
Howie
More information about the Filepro-list
mailing list