<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019717" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019717</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118953</link>
    <description> &lt;p&gt;I would recommend mySQL as well, but I&#039;m assuming you&#039;d rather fix this than develope new.&lt;/p&gt;
&lt;p&gt;If you do use a seperate text file, you might want to keep it outside the web root (so people can&#039;t browse for it).&lt;/p&gt;
&lt;p&gt;To chmod files with a script, the file will need to be owned by the user apache runs as.  OR, you&#039;re server will have to have suexec configured.&lt;/p&gt;
&lt;p&gt;As far as security goes for flat files... it&#039;s not 100%, but IMO, it&#039;s often good enough.  The only people who could attack the file would be people with a unix account on the same box.  If you hide the file in a directory they can&#039;t see inside, and/or even nest it a few levels, I think the odds are it&#039;s secure enough.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 19:17:37 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1118953 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118951</link>
    <description> &lt;p&gt;TWF, you may have missed a couple of posts, please read above.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 19:11:32 +0000</pubDate>
 <dc:creator>chrisuk</dc:creator>
 <guid isPermaLink="false">comment 1118951 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118940</link>
    <description> &lt;p&gt;I suggest you use MySQL instead of text files. It&#039;s more secure, faster and easier to use.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 17:52:53 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1118940 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118939</link>
    <description> &lt;p&gt;additional....&lt;/p&gt;
&lt;p&gt;The script would only be required to process a login and set the file permissions - the editing and saving of the file would be performed  by an exsisting script. The process would have to allow for the editor script to do its job and then allow the user to switch the permissions back to read only - this is why I suggested running the permissions script in a top frame - so it is accessable.&lt;/p&gt;
&lt;p&gt;Does anyone know what I mean ? - or am I talking crap  ?&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 17:44:44 +0000</pubDate>
 <dc:creator>chrisuk</dc:creator>
 <guid isPermaLink="false">comment 1118939 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118938</link>
    <description> &lt;p&gt;Thanks for your advice.&lt;/p&gt;
&lt;p&gt;I like the text file idea, although the text file itself would in theory still be open to &quot;attack&quot;.&lt;/p&gt;
&lt;p&gt;I have considered the following possibility.....&lt;/p&gt;
&lt;p&gt;What about a script that allows a user to perform the following actions...&lt;/p&gt;
&lt;p&gt;1. login&lt;br /&gt;
2. click to allow files in a directory to become &quot;editable&quot; (chmod files to 666)&lt;br /&gt;
3. Edit files&lt;br /&gt;
4. click to secure files (change them back to read only)&lt;/p&gt;
&lt;p&gt;The &quot;edit switch&quot; could be contained in a top frame.&lt;/p&gt;
&lt;p&gt;The login would be set on a subfolder and would allow the user to switch on / off the files in their folder for editing. I think this would be easy to do - does anyone know of a script that could do this ?&lt;/p&gt;
&lt;p&gt;If anyone can write a script like this, I might be interested in paying for it (if the price is right).&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 17:41:27 +0000</pubDate>
 <dc:creator>chrisuk</dc:creator>
 <guid isPermaLink="false">comment 1118938 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118935</link>
    <description> &lt;p&gt;As long as they could find the file, yes, they could edit it.  Try changing the chmod of the directory they are present in to 700.  Unix users will be able to see the directory, but will not be able to see inside it.&lt;/p&gt;
&lt;p&gt;Something else you might try.. don&#039;t edit the html file directly.  Instead edit a .txt or .dat file somewhere, then use SSI to include that file into a .shtml file.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 17:26:53 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1118935 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118932</link>
    <description> &lt;p&gt;Hi and thanks for  welcoming me.&lt;/p&gt;
&lt;p&gt;The files are just ordinary  html web pages, I am concerned that someone would be able to change the files, i.e delete the content or add their own. I dont want &quot;all your base are belong to us&quot; plastered all over my website.&lt;/p&gt;
&lt;p&gt;Would chmod&#039;ing an html file to 666 allow someont to do this easily ?&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 14:53:18 +0000</pubDate>
 <dc:creator>chrisuk</dc:creator>
 <guid isPermaLink="false">comment 1118932 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/chmod-html-files-666-risks#comment-1118931</link>
    <description> &lt;p&gt;chrisuk, Welcome to WMF. &lt;/p&gt;
&lt;p&gt;Chmod to 666 can be dangerous, mainly depending on what the file is. If it is a setup file, then you don&#039;t want anyone to be able to run them. Someone could change or delete the files but they would have to have access to your server.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Nov 2002 14:48:30 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1118931 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
