filepro and file permissions

Dan Coutu coutu at snowy-owl.com
Thu Apr 26 13:48:39 PDT 2007


Well, that is what I'm trying to see if I can avoid doing. As system
security tightens up the ability to use chmod to change permissions on
files has become more restricted. I've found that if I'm using a web
form that sends data to a process run by user apache that executes a
filepro command (as user filepro) then the system() call running chmod
tries to execute as the true process owner of apache. Because the file
that I'm trying to chmod has an owner of filepro (rather than apache)
the chmod fails.

This is aggravating, to say the least. The alternatives of reducing
system security are not attractive.

Thanks though!

Dan

John Esak wrote:
> How about issuing a SYSTEM command to change the permissions/ownership to
> what you want...
>
>    then: system "chmod 644" < my_file
>
> or whatever you need.
>
> Do this after the file gets created, or exported or whatever.
>
> John
>   
>> -----Original Message-----
>> From: filepro-list-bounces+john=valar.com at lists.celestial.com
>> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.com]On
>> Behalf Of Dan Coutu
>> Sent: Thursday, April 26, 2007 4:19 PM
>> To: FP List
>> Subject: filepro and file permissions
>>
>>
>> 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.
>>
>> I've tried to create a .profile in the user's home directory with 'umask
>> 002' but that didn't work.
>>
>> Thanks!
>>
>> Dan
>>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>     
>
>
>
>   



More information about the Filepro-list mailing list