<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br><br>Thank you very much.<br>I will use one of the workarounds.<br><br>Flavius.<br></div><br><br><br><hr id="stopSpelling">> Date: Tue, 14 Oct 2008 12:51:43 -0400<br>> From: fairlite@fairlite.com<br>> To: filepro-list@lists.celestial.com<br>> Subject: Re: umask for exported files<br>> <br>> In the relative spacial/temporal region of Tue, Oct 14, 2008 at 10:29:00AM<br>> -0500, flavius m achieved the spontaneous generation of the following:<br>> > Hello,<br>> ><br>> > I am running filepro 5.6 under Linux. I am trying to change the default<br>> > umask for filepro. Currently, filepro creates files/directories with 700<br>> > permissions and I need it to be 755.<br>> ><br>> > This is what I have done until now: - I have added "umask 0022" to<br>> > /etc/profile, /home/filepro/.bashrc, /home/filepro/.profile - I have<br>> > added PFUMASK=0022 in filepro configuration<br>> ><br>> > Unfortunatelly, none of the above modified the umask.<br>> ><br>> > I would appreciate any help on that.<br>> ><br>> > Thank you, Flavius Moldovan<br>> <br>> Oh, Flavius, that's a sore point. I feel your pain.<br>> <br>> You can't do anything about the problem utilising umask, unfortunately.<br>> <br>> The vendor, in their infinite "wisdom", has ignored over thirteen years<br>> (over multiple owners) of me begging, as a security-conscious sysadmin,<br>> for this to be fixed. They have blatantly ignored every attempt to get<br>> this problem rectified, and I can only surmise that they have no desire to<br>> address security concerns regarding their product's output.<br>> <br>> You have two options available to you, neither ideal:<br>> <br>> 1) Use open() in your code, and then close the file. Then export to that<br>> same file. fP's open() uses mode 0600--also a mistakenly hardwired and<br>> immutable value. Oh, actually I think the HTML file opening command uses<br>> 0644, -also- a hardwired value. I know there are three ways to get<br>> different modes out of it, and I'm pretty sure that's the third one.<br>> <br>> 2) You can use system() to execute an external chmod from within your<br>> processing, and just suck up the overhead and race condition inherent to<br>> this "solution".<br>> <br>> Bottom line is that fP has -never- worked properly in this regard, and<br>> because you use their product, you've been left to fend for your security<br>> on your own. I'm sure they're sorry for the inconvenience--sometimes,<br>> maybe, perhaps, in some alternate reality where they actually give a damn<br>> about something other than adding spell checkers.<br>> <br>> They've known about this since 4.1 when I first complained in 1993-1995.<br>> Then there was 4.5, 4.8, 5.0, and now 5.6. It's still not fixed, and I'm<br>> sincerely doubting it ever will be.<br>> <br>> mark-><br>> -- <br>> "I'm not subtle. I'm not pretty, and I'll piss off a lot of people along<br>> the way. But I'll get the job done" --Captain Matthew Gideon, "Crusade"<br>> _______________________________________________<br>> Filepro-list mailing list<br>> Filepro-list@lists.celestial.com<br>> http://mailman.celestial.com/mailman/listinfo/filepro-list<br><br /><hr />See how Windows connects the people, information, and fun that are part of your life. <a href='http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/' target='_new'>See Now</a></body>
</html>