<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
/* GENERAL STYLES */
* {
 margin:0;
 padding:0;
 font-family:Arial,Helvetica,sans-serif;
 border:0;
}
.typography * {
 font-family:Arial,Verdana,sans-serif;
}
.typography p,
.typography ul li,
.typography ol li,
.typography a {
 color:#333;
 line-height:20px;
 font-size:14px;
}
 .typography p {
  margin-bottom:20px;
 }

/* LINK STYLES */
.typography a {
 color:#999;
 text-decoration:underline;
}
 .typography a:hover {
 text-decoration:none;
 } 

/* LAYOUT STYLES */
#Content {
 padding:0 20px;
 border-top:7px solid #0079e3;
 background:url(cid:mpei-2653) repeat-x 0px 0px;
}
 h1.emailTitle {
  margin-bottom:20px;
 }
#Logo {
 text-align:right;
 margin:5px 10px 0 0;
}
#Footer {
 padding:20px;
 border-top:1px solid #ccc;
 border-bottom:2px solid #aaa;
 background:#fefeff;
}
 #Footer a {
         color:#999;
         text-decoration:underline;
 }
  #Footer a:hover {
    text-decoration:none;
  }
 #Footer p {
  font-size:11px;
  margin-bottom:10px;
 }
 #Footer table {
  font-size:11px;
 }
 #Footer table.contactDetails {
  width:80%;
 }
-->
</style>
<title>SilverStripe Newsletter</title>
</head>
<body>

<div id="EmailBody">
 <div id="Content" class="typography">
  <div id="Logo">
   <a href="http://www.silverstripe.com/home/?utm_source=mailprimer&utm_medium=email" title="Go to the SilverStripe website"><img src="cid:mpei-2657" name="mpei-2657" alt="SilverStripe" /></a>
  </div>
  <p>I'm wondering if you wellylugers have a good idea for helping us with <br>
the SilverStripe product's tar.gz distribution...<br>
See <a href='http://www.silverstripe.com/core-team-discussion/flat/2267' target='_blank'>http://www.silverstripe.com/core-team-discussion/flat/2267</a><br>
<br>
---<br>
<br>
With SilverStripe the file permissions for a few files and directories <br>
need to be writeable by the webserver. From 2.0.1 to 2.0.2 we've taken <br>
on board feedback to make the permissions alot less freaky than before. <br>
Something to reiterate is that the "open" file permissions have always <br>
related to the install process... there's never been a need for <br>
SilverStripe, once installed, to have write-permissions set other than <br>
for the assets folder (see below)<br>
<br>
My question:<br>
<br>
What is the best practice for us to use in setting permissions inside <br>
the .tar.gz file? Should it be rw-rw-rw, for instance?<br>
<br>
To clarify the files are;<br>
<br>
1) .htaccess, which gets written to once, then can be secured to readonly.<br>
2) /mysite/ and /tutorial/ which does not require files inside to be <br>
opened up. Instead, these directories need write permission so that a <br>
file inside, _config.php, can be created. Once installed, you can make <br>
this file readonly.<br>
3) /assets/ which is to be permanently kept web-writeable as this is <br>
where all uploads via the CMS are stored<br>
<br>
What if were to store them as rw-rw-rw- in the tar.gz, then the <br>
installer itself would automatically make;<br>
a) .htaccess readonly r--r--r--<br>
b) the folders r-xr-x-r-x (the 'x' is needed to allow browsing, right?) <br>
Or is this superfluous?<br>
c) Do we need the world-read bit set? Or is r--r----- fine.<br>
<br>
I'm talking about what will work best in terms of most people out of the <br>
box, especially for people who are unclear or unfamilar with file <br>
permissions, etc. We want people to have a great out-of-the-box <br>
experience, rather than the first step being messing with file permissions.<br>
<br>
This suggests thinking both about those managing their own servers as <br>
well as those installing silverstripe on random webfarm hosts...</p>
  
  <p>Sigurd Magnusson | Chief Marketing Officer</p>
 </div>
 
 <div id="Footer">
  <p>
   <strong>SilverStripe</strong><br />
   <a href="http://www.silverstripe.com/home/?utm_source=mailprimer&utm_medium=email" title="Go to the SilverStripe website">http://www.silverstripe.com</a>
  </p>
  
  <table class="contactDetails">
   <tbody>
    <tr>
     <td>
      <table class="phoneDetails">
       <tbody>
        <tr><td>Phone:</td><td>+64 4 978 7332</td></tr>
        <tr><td>Mobile:</td><td>+64 21 421 208</td></tr>
        <tr><td>Skype:</td><td>SigurdMagnusson</td></tr>   
       </tbody>
      </table>
     </td>
     <td>
      Level 3<br />
      97-99 Courtenay Place<br />
      Wellington, New Zealand
     </td>
     </tr>
    </tbody>
  </table><!-- clean.1 --><table width="600" border="0"><tr><td align="right" style="text-align:right;"><a href="http://www.mailprimer.com/" target="_blank"><img src="cid:mpei-2661" name="mpei-2661" style="vertical-align:middle" title="0800 MAILPRIMER" width="161" height="17" border="0"></a></td></tr></table><!-- clean.1 -->
 </div>

</div>


<!-- clean.2 --><img src="http://mail.mailprimer.com/2671/101051531029968149/0/email1.do" width="2" height="1" border="0"><!-- clean.2 --></body>
</html>