For bookworm when you install samba smb.conf is not automatically installed and as another user stated if you make your samba server a active directory domain controller then it will work out because that process results in one being made. However you can just make a smb.conf file and copy one of the examples from the samba wiki "Setting up Samba as a Standalone Server" page. the key detail is that you have: [global] server role = standalone server