I have a web server and I mount the directory containing all my website projects onto a local directory in my Linux VirtualBox under /home/UserA/Desktop/Remote/sites.
My problem is editing the files in the mounted directory. Using Sublime-3, I edit a file and attempt to save but I get a permission denied message.
As it's permissions problem, I attempt to start sublime from a terminal using SUDO or the root user account. However, when sublime starts and I browse to find a file, the mounted directory is not visible to the root user.
My strategy to solve this problem is grant 777 permissions to the mounted sites directory but I actually get permission denied messages for the root user - I thought the root user can go, see and do anything.
I would appreciate some help. I'm really stuck.
The /home/UserA/Desktop/Remote directory belongs to UserA
The /home/UserA/Desktop/Remote/sites directory, and everything beneath, belongs to root
I am mounting using SSHFS.