I copied the smb.conf file to /etc/Samba add shares, but when i restart samba I get an error "job for smb.service failed because the control process exited with error code.
See "systemctl status smb.service" and "journalctl -xeu smb.service" for details"
Journalctl was blank. In the samba log it says "Error: Maximum include depth (100) exceeded!
Can't load /usr/share/defaults/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!"
Load smb config files from /usr/share/defaults/samba/smb.conf
Error: Maximum include depth (100) exceeded!
Error loading services
If I delete the smb.conf in /etc/samba, Samba will restart again.
Also, when I try to add Samba to UFW with ufw allow samba, I get "ERROR: Could not find a profile matching 'samba'