<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020828" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020828</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128219</link>
    <description> &lt;p&gt;assuming these are files created by php, write a php script like so:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;chown -R yourusername ./*&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;system&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;chmod -R 775 ./*&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;put it in your document root and execute it.&lt;/p&gt;
&lt;p&gt;and from now on, when you create files from php and want to be able to access them yourself also, make sure you chown and chmod them after theyre created&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Mar 2003 16:39:30 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1128219 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128136</link>
    <description> &lt;p&gt;I agree with what everyone else here has said - your best bet is to contact your host. It&#039;s a very simple thing for them to do and will only take about a minute. Good luck!&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 Mar 2003 07:04:40 +0000</pubDate>
 <dc:creator>Brian Farkas</dc:creator>
 <guid isPermaLink="false">comment 1128136 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128127</link>
    <description> &lt;p&gt;It actually says on the pages that the owner is &quot;Nobody&quot; but I don&#039;t know if that&#039;s just the word that the script uses when it doesn&#039;t have the correct name.  Otherwise, the files were downloaded from the old site via simple FTP and uploaded to the new site using simple FTP.  Nothing was uploaded thru a webpage interface.&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 Mar 2003 01:13:25 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1128127 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128055</link>
    <description> &lt;p&gt;You can only chmod if you are the owner, so that&#039;s why that is not working.&lt;/p&gt;
&lt;p&gt;By &quot;Nobody?&quot;, do you mean that &#039;nobody&#039; is the owner?  Or don&#039;t you know who? (there must be an owner)  I&#039;m not sure if you can tell who the owner is with an FTP client (never tried).&lt;/p&gt;
&lt;p&gt;How was the backup/restore performed?  Did you use a web control panel?&lt;/p&gt;
&lt;p&gt;As far as I know, whenever you FTP a file to the server, the owner because the user you&#039;re logged in as.  If you upload files through a web page, the owner becomes the user that the web server (apache) runs as (usually &#039;nobody&#039;).  That&#039;s why I&#039;m interested in how the backup/restor was performed, and what you meant by &quot;Nobody?&quot;.&lt;/p&gt;
&lt;p&gt;To fix the ownership problem, you&#039;ll need to contact your host and ask that they change the owner for you.  That will fix your chmod problems too.&lt;/p&gt;
 </description>
     <pubDate>Sat, 29 Mar 2003 05:16:31 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1128055 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128046</link>
    <description> &lt;p&gt;I have no idea who the owner is.  The script?  Nobody?  I created the folder &quot;albums&quot; and then uploaded a whole bunch of stuff from my old site backup to the new server.&lt;/p&gt;
&lt;p&gt;Upon further review, I can move, delete, and rename, but I can not chmod anything in that directory.  Like I said, it&#039;s working now (no errors) but this is new to me and I&#039;m just trying to understand what the deal is.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 22:57:05 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1128046 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128045</link>
    <description> &lt;p&gt;No, you cannot take ownership of any files in a unix environment.&lt;/p&gt;
&lt;p&gt;Who is the owner of the files in question?&lt;br /&gt;
What actions are you trying to perform on these files that are unsuccessful?&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 22:47:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1128045 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Now it&#039;s about Ownership</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1128003</link>
    <description> &lt;p&gt;Well I got my host to chmod all the folders in question to 777 which fixed the error messages I was getting.  But when I go into my FTP program and try to do anyting to those folders I&#039;m still getting 550 Ownership errors.  I know all about setting permissions but how does this ownership stuff work?  This part is new to me and it&#039;s bugging me that I can&#039;t move files in my own site?  Can I reclaim ownership?&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 14:22:09 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1128003 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1127967</link>
    <description> &lt;p&gt;If you have root access, you could just log into FTP as root, and do it there.  I&#039;m just stating that shell access along wont do the job.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Mar 2003 19:00:46 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1127967 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1127947</link>
    <description> &lt;p&gt;unless you have root access in which case you can change the ownership yourself:&lt;/p&gt;
&lt;p&gt;chown user:group&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Mar 2003 10:00:39 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1127947 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/shell-access#comment-1127937</link>
    <description> &lt;p&gt;(Note. I&#039;m assuming you&#039;re FTP proggy will do CHMOD)&lt;/p&gt;
&lt;p&gt;Shell access wont fix this problem.  You&#039;re FTP account is the same as your shell account (user permission wise).  If you can&#039;t CHMOD from FTP, you won&#039;t be able to from a shell.&lt;/p&gt;
&lt;p&gt;What you need to do is find out who the owner is now.  If the owner is `nobody` (or whoever Apache runs as, can be found in phpinfo() ), then you can control the chmod using a server-side scripting language.&lt;/p&gt;
&lt;p&gt;The other option is to contact your host, and have them fix the owner issue.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Mar 2003 08:13:32 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1127937 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
