[global]
workgroup = WORKGROUP
server string = QEMU SMB Server
security = user
map to guest = Bad User
# Logging
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
# QEMU SMB share - path is set dynamically by QEMU via %S substitution
# When QEMU starts with -netdev user,smb=/path/to/share, it passes the path
# to smbd, which uses this share configuration.
[qemu]
path = %S
read only = no
browseable = yes
guest ok = yes