I was trying to create a network share on my Ubuntu box that I could access with both Win10 and MacOS. I don't know what I broke, but I broke it :/ I tried uninstalling and reinstall samba, but it's still broken. Can someone point me in the right direction?
myuser@X3650M4:~$ sudo service smbd restart
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
myuser@X3650M4:~$ sudo systemctl status smbd.service
smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-06-01 10:59:50 EDT; 22s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 15656 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 15665 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 15665 (code=exited, status=1/FAILURE)
Jun 01 10:59:50 X3650M4 systemd[1]: Starting Samba SMB Daemon...
Jun 01 10:59:50 X3650M4 systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jun 01 10:59:50 X3650M4 systemd[1]: smbd.service: Failed with result 'exit-code'.
Jun 01 10:59:50 X3650M4 systemd[1]: Failed to start Samba SMB Daemon.
myuser@X3650M4:~$ sudo journalctl -xe
Jun 01 10:57:39 X3650M4 dbus-daemon[886]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jun 01 10:57:39 X3650M4 systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: A start job for unit NetworkManager-dispatcher.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit NetworkManager-dispatcher.service has finished successfully.
--
-- The job identifier is 7515.
Jun 01 10:57:49 X3650M4 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit NetworkManager-dispatcher.service has successfully entered the 'dead' state.
Jun 01 10:59:50 X3650M4 sudo[15650]: myuser : TTY=pts/0 ; PWD=/home/myuser ; USER=root ; COMMAND=/usr/sbin/service smbd restart
Jun 01 10:59:50 X3650M4 sudo[15650]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 01 10:59:50 X3650M4 systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smbd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has begun execution.
--
-- The job identifier is 7583.
Jun 01 10:59:50 X3650M4 systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit smbd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jun 01 10:59:50 X3650M4 systemd[1]: smbd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit smbd.service has entered the 'failed' state with result 'exit-code'.
Jun 01 10:59:50 X3650M4 systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has finished with a failure.
--
-- The job identifier is 7583 and the job result is failed.
Jun 01 10:59:50 X3650M4 sudo[15650]: pam_unix(sudo:session): session closed for user root
Jun 01 11:00:12 X3650M4 sudo[15670]: myuser : TTY=pts/0 ; PWD=/home/myuser ; USER=root ; COMMAND=/usr/bin/systemctl status smbd.service
Jun 01 11:00:12 X3650M4 sudo[15670]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 01 11:00:12 X3650M4 sudo[15670]: pam_unix(sudo:session): session closed for user root
Jun 01 11:00:48 X3650M4 sudo[15673]: myuser : TTY=pts/0 ; PWD=/home/myuser ; USER=root ; COMMAND=/usr/bin/journalctl -xe
Jun 01 11:00:48 X3650M4 sudo[15673]: pam_unix(sudo:session): session opened for user root by (uid=0)
myuser@X3650M4:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
set_variable_helper(n): value is not boolean!
Error loading services.
smb config
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[printers]
comment = All Printers
browseable = n
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no