I have a working 'public' / 'guest' Samba Share on one Linux machine; the '/etc/samba/smb.conf' looks like this:
[shared] comment = Shared Directory writable = yes read only = no create mask = 0644 directory mask = 0755 path= /home/myuser/shared browseable = yes guest ok =yes
The same smb.conf file was copied to another Linux machine; and Samba was restarted.
The original server allows me to access it without providing a username or password; the new server always requests a username and password (and actually every combination of what I think it should be doesn't work in any case).
Is there another setting somewhere else other than 'smb.conf' I need to change ?
I want this share to be public, with no username/password necessary - ie, to behave like the original server where I copied the 'smb.conf' from.
Additional: I just run a 'testparm -v' and see at least the following differences :
The original server has this in the [global] section:
security = SHARE
Whereas the new server has this:
security = USER
But I have also set up 'security = USER' (I'm using a copy of 'smb.conf' afterall) in the 'smb.conf' file on the new machine ?
Is there an over-riding configuration here ?
Ah : looks like I am using 'samba4' here - which apparently has deprecated the 'security share' mode.
.... There are several posts out there that state that doing:
map to guest = Bad User
Should emulate the 'share' facility - but it doesn't seem to work for me. (I'm attaching with a Windows7 client; and I have added a 'samba' user).
(Also: my config had 'bad user' - lowercase)......