Debian Samba share. no password. read only

Just install samba server:

apt-get install samba

edit the config:

nano /etc/samba/smb.conf

set security to "share"

security = share

and guest account to nobody

guest account = nobody

then you just need to create your share like this:

[guest share]
comment = a guest share
path = /path/to/files
browseable …
more ...