<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have a hopefully quick question about file 
permissions for uploaded files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>We have a new server that we're bringing up that 
utilizes</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; CentOS release 4.4 
(Final),</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Apache 2,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; PHP5 and</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; pmwiki 2.1.7</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Essentially we have file uploads working, but they 
all get 'World' Write' permission.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried changing umask in pmwiki/pmwiki.php, but 
this didn't stop the problem.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried setting a umask in Apache, which would 
affect the permission, but not the world write, it was still 
enabled</FONT></DIV>
<DIV><FONT face=Arial size=2>PHP seems to have a umask set as 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Every file that gets uploaded has a permission set 
of: -rw-r--rw-</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyone have any idea where I should go looking 
</FONT></DIV><FONT face=Arial size=2>
<DIV><BR>Best Regards</DIV>
<DIV>&nbsp;</DIV>
<DIV>--<BR>Paul Carew<BR>CEO<BR>Close Reach Communications Inc<BR>Tel: 
+1-512-576-3030<BR>Fax: +1-973-201-1670<BR>E:&nbsp;&nbsp;&nbsp; <A 
href="mailto:Paul.Carew@CloseReachCommunications.com">Paul.Carew@CloseReachCommunications.com</A></FONT></DIV></BODY></HTML>