I'm running a piece of software called hpool, it's related to Chia crypto farming. It is temperamental and somehow locks files in place that other crypto farming software needs. On windows I believe it does this with the exclusive use functionality. I had to run it last and keep the required shares as read/write access for that reason.
I decided to avoid this problem entirely by going to Ubuntu desktop, this allowed me to set the drives as read only and it didn't matter what order I ran the software in. I've since moved to Ubuntu server 21.04 and the problem is back.
I believe the problem is caused by the mounting method. On Ubuntu server I am using:
sudo mount.cifs //apollo/cf1/ /home/grumpy/mnt/apollo/cf1/ -o user=user,pass=pass
This mounts the network share on my Unraid server as expected, the shares are still read only, but I'm now experiencing the above issues.
I noticed that Ubuntu desktop doesn't use the same method and that the network share location looks like this:
/run/user/1000/gvfs/smb-share:server=apollo.local,share=cf1
Comparing cat /proc/mounts
between ubuntu desktop and server shows that, as expected, on server they are mounted. However, they don't appear to be mounted on desktop.
Obviously the method on Ubuntu desktop is to click on Apollo (file share), enter login details and then right click > mount all the required shares.
How can I replicate this method on Ubuntu server 21.04?