Running RHEL 7 / Samba 4.10
I have two different shares on this server. I need to make one publicly available to everyone on the network and one password protected.
A lot of the articles I've found on how to do this seem to want you to set up a global parameter of security = share
but Samba 4 doesn't support that option, it appears to be a Samba 3 thing.
I had this working for when there was just a private share just fine. I set map to guest = never
and then created a linux user smbuser and then did smbpasswd -a smbuser
and it was working just great.
Now I need to add in a different location for public access
Every time I try to access the public share it still prompts for a password from Windows 10 File Explorer. There's an Excel sheet some user is running that needs to drop a file out on this public share and it doesn't support a username or a password.
I read somewhere today in the dozens of pages I found that the authentication challenge happens before the share options are used so I don't even know if this is possible.
I've been reading through the Samba configuration options for smb.conf and nothing is jumping out at me. Wondering if anyone has seen anything like this before?
My config looks like this:
workgroup = SAMBA
security = user
map to guest = Bad User
protocol = SMB2
#========== Share Definitions ============
inherit permissions = yes
inherit owner = yes
[private]
valid users = smbuser
path = /files/privateshare
browseable = yes
guest ok = no
writeable = yes
public = no
[public-share]
path = /publicdocs/data/share
browseable = yes
guest ok = yes
writeable = yes
public = yes
guest only = yes