Heres a working modern Samba config that I've used on ubuntu 20.04:
Also make sure to enable and start the netbios named, `sudo systemctl enable nmbd && sudo systemctl start nmbd`
[global]
workgroup = WORKGROUP
security = user
passdb backend = tdbsam
netbios name = UBSERVER
client min protocol = CORE
client max protocol = NT1
server max protocol = SMB3
server min protocol = LANMAN1
strict sync = no
server role = standalone server
server signing = disabled
smb encrypt = disabled
ntlm auth = yes
# Tweak socket options for lower delay. We also set TCP_KEEPIDLE to 20s which is
# about what it takes to reset the console and launch OPL, this avoids keeping
# file locks around for too long. We could try to optimize socket buffer sizes
# but Linux should do this automatically.
# TODO(mafredri): Do more testing with TCP_QUICKACK.
socket options = TCP_NODELAY TCP_KEEPIDLE=20 IPTOS_LOWDELAY SO_KEEPALIVE
# Disable keepalive to avoid hanging onto locks. Should not be needed
# due to SO_KEEPALIVE and helps with FMV audio stutter.
keepalive = 0
# ------------------------------------
# Attempt to speed up reads and writes
# ------------------------------------
# This setting only works for oplocked files but OPL doesn't oplock.
write cache size = 0
# Speed up directory listings.
getwd cache = yes
# Remove audio stutter in FMVs.
large readwrite = yes
# Disable asynchronous reads and writes.
aio read size = 0
aio write size = 0
# This might help with performance as the system doesn't need to check locks.
# OPL is the only client so we don't care about locks anyway.
strict locking = no
[xbox360]
comment = Xbox Share
path = /home/server/mounts/360-dest/
write list = xbox
create mask = 0664
directory mask = 0775