I've been trying for days and have been impossible.
All I get is not enough permission to access share from client
`testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Global parameters
[global]
printcap name = cups
security = USER
usershare allow guests = Yes
usershare max shares = 100
workgroup = SAMBA
idmap config * : backend = tdb
cups options = raw
[homes]
browseable = No
comment = Home Directories
inherit acls = Yes
read only = No
valid users = %S %D%w%S
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = @printadmin
path = /var/lib/samba/drivers
write list = @printadmin root
[Drive]
guest ok = Yes
path = /var/home/htpc/Drive
read only = No
valid users = htpc`
I don't know if these notes would help, but I believe you should be able to make this work in podman, rather than trying to muck about with the primary system files.
https://www.procustodibus.com/blog/2022/10/wireguard-in-podman/
It's about using wireguard, but I would imagine most of the concepts should be the same.
FWIW....
My 2 cents. I tried and tried to make samba work. Finally, I saw a post from someone that said, "samba is for windows, SSH is for Linux". Best post I ever read. SSH for me ever since.
The first thing I do after install is uninstall samba.
Happy days ever since.
I gave up, ended up using SSH
I've never tried to set up Samba, so I think this is probably good advice