title: How to edit read only file, as root without sudo
body: <p>I have a thecus home server, I'd like to edit the index.php file located under <code>/img/www/htdocs/index.php</code> however it tells me every time I <code>vi</code> that it's 'Read-only'.</p>
  
  <p>I checked it's file permissions using <code>ls -l index.php</code>:</p>
  
  <p><code>-rw-r--r--     1 root    root    7619 Mar 29    2013 /img/www/htdocs/index.php</code></p>
  
  <p>From my understanding, the <code>-rw</code> first in the permissions, stands for the ownership permissions, and the owner is root in the group of root. </p>
  
  <p>I have ssh'd into my server using:</p>
  
  <p><code>ssh root@server.com</code> </p>
  
  <p>Once I login, it say's </p>
  
  <p><code>root@127.0.0.1:~#</code></p>
  
  <p>I have tried changing it's ownership, chmodding it, using vi to change permissions, trying to force it doesn't work either, how can I edit this damned file ! :( </p>
  
  <p>When I try to use <code>sudo</code> it say's the command is not found, so I'm assuming that's because Thecus have stripped down the commands.</p>
  
  <p>The output of <code>mount</code> without any arguments, I have noticed that the directory that I'm currently working in, is actually set to <code>ro</code>, is there a way I can edit this?</p>
  
  <p><code>/dev/cloop2 on /img/www type ext2 (ro,relatime,errors=continue,user_xattr,acl)</code></p>
  
  <p>Any help would be great! :)</p>