How to have a guest share on Samba without resorting to the deprecated "security = share" configuration.This is a regular query on the Samba mailing list. When it comes to "security = share" just say no!
In a nutshell you need:
- A username map file.
- A valid 'nix "guest" user mapped to the Windows guest account ("nobody" in most distros).
- Proper smb.conf configuration.
nobody = guest
security = user
Map to guest = Bad User
username map = /etc/samba/smbusers
-- no 'valid users =' line -- (means don't use a "valid user = " entry)
guest ok = yes
-- no 'valid users =' line --