Title: Simple shared folder with Samba on OpenBSD 6.5
Author: Solène
Date: 15 May 2019
Tags: samba openbsd
Description:
This article explains how to set up a simple samba server to have a
CIFS /
Windows shared folder accessible by everyone. This is useful in some
cases but
samba configuration is not straightforward when you need it for a one
shot time
or this particular case.
The important covered case here is that **no user** are needed. The
trick comes
from `map to guest = Bad User` configuration line in `[global]`
section. This
option will automatically map an unknown user or no provided user to
the guest
account.
Here is a simple `/etc/samba/smb.conf` file to share **/home/samba** to
everyone, except *map to guest* and the shared folder, it's the stock
file with
comments removed.
[global]
workgroup = WORKGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba/smbd.%m
max log size = 50
dns proxy = no
map to guest = Bad User
dataswamp.org:70 /~solene/article-samba-easy:36: port field too long