mainer
5
Thank you for your suggestion, but it does not work for me. I have found that if I use the option users ’username’ either directly by editing /etc/config/samba or the Luci interface I get an error when I try to mount the share. The error occurs if the option guest_ok is ‘no’ or even ‘yes’. If I set the option guest_ok to ‘yes’ and do not use the option users I can mount the share. I have tried mounting with Apple OSX, Linux, and Android clients. I do not have a MS Windows computer available to use at this time. These same machines can mount user shares on other Linux computers running samba.
I have also found that using the default samba template I can mount the /root folder as a guest when it is not specified as a mount point. I believe this is because the [global] options for "Share home-directories” is checked by default. All that is needed is for the client computer to specify smb://GL-AR750S/root as the mount point and use guest account. The mount is read only. As /root is a known folder, I believe this is an undesirable situation and I have changed guest_ok to ’no’ in the template.
I have also changed the file /etc/hotplug.d/block/50-samba line "uci delete samba.@sambashare[$i]” to “exit” so that existing "config sambashare” sections are not changed if they are mounted when the router is rebooted.