I have a Samba share hosted on a server in my apartment, running Debian. I’m trying to mount it through fstab so it shows up in my normal file tree, but when it mounts, I’m operating as read-only.
The Ubuntu file manager is also able to mount it, and in there I’m able to write as much as I like.
My fstab has:
//192.168.0.12/sambashare /mnt/samba cifs username={my_name},password={my_pass},file_mode=0777,dir_mode=0777 0 0
And if I cd /mnt/samba
and ls
, I see all the files there. If I touch testfile.txt
it gives a permission error.
On the other hand, if I open the file window and open the sambashare (which shows up in the same place where I’d see a flash drive), I can interact with it all I want. If I then right click and Open in Terminal, this shows that it’s been mounted to:
/run/user/1000/gvfs/smb-share:server=shepard,share=sambashare
And once I’m in there, I can touch testfile.txt
all I want.
How do I debug the two different ways it’s being mounted, and make the /mnt/samba version properly give me write permissions?