CIFS Mounting - downsides of making writeable?

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
deepthaw
Posts: 65
Joined: Wed May 27, 2020 3:45 am
Has thanked: 1 time
Been thanked: 13 times

CIFS Mounting - downsides of making writeable?

Unread post by deepthaw »

I notice the script for the CIFS mounting appears to force mounting RO. If I try creating an account with rw permission, making the SMB share writeable, and access it via that account the script throws up an error about being unable to mount readonly.

Is there a reason to not edit the script to make it mount the CIFS share writeable? Seems like whoever wrote it went to some level of effort to make sure we didn't.

(I'd like to be able to share hard drive images, etc. via CIFS and they'd need to be writeable.)
Locutus73
Core Developer
Posts: 51
Joined: Mon May 25, 2020 9:55 am
Has thanked: 1 time
Been thanked: 8 times

Re: CIFS Mounting - downsides of making writeable?

Unread post by Locutus73 »

Are you referring to cifs_mount.sh and cifs_umount.sh?
There's no line of code or default option forcing read only monuts in those scripts.
I just tested succesfully accessing my Amiga directory (on my NAS) through MiSTer, creating a test.txt file from its Linux ssh terminal, and then reading it afterwards accessing directly the NAS.

Regards.

Locutus73
deepthaw
Posts: 65
Joined: Wed May 27, 2020 3:45 am
Has thanked: 1 time
Been thanked: 13 times

Re: CIFS Mounting - downsides of making writeable?

Unread post by deepthaw »

Hmm. When I made my share writable, I got a “could not mount readonly” error. I’ll have to look further into it.
Locutus73
Core Developer
Posts: 51
Joined: Mon May 25, 2020 9:55 am
Has thanked: 1 time
Been thanked: 8 times

Re: CIFS Mounting - downsides of making writeable?

Unread post by Locutus73 »

Try using dmesg command in a ssh terminal after launching the script. You’ll see kernel logs. Usually they are more informative than the mount output messages.

Regards.

Locutus73
Post Reply