title: Can't edit a read-only file for which I have the write access and also can not change its permission; how to remount its parent folder?
body: <p>I need to edit a file which is read only. This file is located at a remote appliance. Through ssh I logged in to this as admin and I have the root access.</p>
  
  <p>Command "ls -l" show the permissions of file as  </p>
  
  <pre><code>"-rwxr-xr-x 1 admin root   952 Oct 30 02:01 file.sh"
  </code></pre>
  
  <p>I am not as such familiar with Linux but I searched and found that this above line means that the admin is the owner and he/she has the read and write permission.</p>
  
  <p>But the file is appearing to be read only, I am unable to edit it. So I tried to change the permission using command chomd</p>
  
  <pre><code>[admin@appliance targetfolder]# chmod 666 file.sh
  chmod: changing permissions of `file.sh': Read-only file system
  </code></pre>
  
  <p>But still it is just read-only. </p>
  
  <p>Someone suggested to remount the folder which contains this file.</p>
  
  <p>How will I remount it, I used </p>
  
  <pre><code>" mount -o remount,rw /folde1/folder2/targetFolder" 
  </code></pre>
  
  <p>but It gave </p>
  
  <pre><code>"mount: can't find /folde1/folder2/targetFolder in /etc/fstab or /etc/mtab".
  </code></pre>