I need to edit a file which is read only, and its parent folder is also 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.
Command "ls -l" show the permissions of file as
"-rwxr-xr-x 1 admin root 952 Oct 30 02:01 file.sh"
and for folder
drwxr-xr-x 3 admin root
I am not as such familiar with Linux but I searched and found that these above lines mean that the admin is the owner and he/she has the read and write permission.
Someone suggested to remount the folder which contains this file.
How will I remount it, I used
mount -o remount,rw /folde1/folder2/targetFolder
but It gave
mount: can't find /folde1/folder2/targetFolder in /etc/fstab or /etc/mtab
I looked at question How do I remount a filesystem as read/write?, but I did not understand the answer...
It said correct syntax is
sudo mount -o remount,rw /partition/identifier /mount/point
What should I give as /partition/identifier and /mount/point? I.e. what is this /partition/identifier and /mount/point?
sudo blkidin your terminal. Mount point is the location where you'd like the partition to be mounted, usually
/mnt, you'll have to create a folder there and the location of that folder becomes the mount point.