Samba stopped working after update

After a recent software update, Samba no longer works. Any help debugging this would be appreciated. Here is my /etc/samba/smb.conf file:


[global]
   workgroup = WORKGROUP
   dns proxy = no
   log file = /var/log/samba/%m.log
   max log size = 1000
   client min protocol = SMB2
   server role = standalone
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
   pam password change = yes
   map to guest = Bad Password
   usershare allow guests = yes
   name resolve order = lmhosts bcast host wins
   security = user
   guest account = nobody
   usershare path = /var/lib/samba/usershare
   usershare max shares = 100
   usershare owner only = yes
   force create mode = 0070
   force directory mode = 0070

[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

[simonp_win]
   comment = Shared directory for simonp
   browseable = yes
   read only = no
   path = /run/timeshift/backup/simonp_win

[printers]
   comment = All Printers
   browseable = no
   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

When I try to start the service, this is what I get:

~ >>> sudo systemctl start samba.service                                                                                                                                                                      
Job for samba.service failed because the control process exited with error code.
See "systemctl status samba.service" and "journalctl -xe" for details.

Here is the result of the suggested commands:

~ >>> sudo systemctl status samba.service                                                                                                                                                                                                     
● samba.service - Samba AD Daemon
     Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2020-09-18 17:50:45 PDT; 15s ago
       Docs: man:samba(8)
             man:samba(7)
             man:smb.conf(5)
    Process: 3959 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
   Main PID: 3959 (code=exited, status=1/FAILURE)
     Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details"
      Error: 22 (Invalid argument)

Sep 18 17:50:45 XPS8930 samba[3959]:   Copyright Andrew Tridgell and the Samba Team 1992-2020
Sep 18 17:50:45 XPS8930 samba[3959]: [2020/09/18 17:50:45.950513,  0] ../../source4/smbd/server.c:826(binary_smbd_main)
Sep 18 17:50:45 XPS8930 samba[3959]:   At this time the 'samba' binary should only be used for either:
Sep 18 17:50:45 XPS8930 samba[3959]:   'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the>
Sep 18 17:50:45 XPS8930 samba[3959]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Sep 18 17:50:45 XPS8930 samba[3959]: [2020/09/18 17:50:45.950608,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
Sep 18 17:50:45 XPS8930 samba[3959]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error >
Sep 18 17:50:45 XPS8930 systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Sep 18 17:50:45 XPS8930 systemd[1]: samba.service: Failed with result 'exit-code'.
Sep 18 17:50:45 XPS8930 systemd[1]: Failed to start Samba AD Daemon.

~ >>> journalctl -xe                                                                                                                                             

Sep 18 16:18:49 XPS8930 dbus-daemon[534]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.212' (uid=0 pid=2477 comm="sudo jou>
Sep 18 16:18:49 XPS8930 audit[2477]: USER_ACCT pid=2477 uid=1000 auid=1000 ses=4 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="simonp" exe="/usr/bin/sudo" hostname=? addr=? term>
Sep 18 16:18:49 XPS8930 dbus-daemon[534]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 18 16:18:49 XPS8930 audit[2477]: CRED_REFR pid=2477 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/de>
Sep 18 16:18:49 XPS8930 sudo[2477]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Sep 18 16:18:49 XPS8930 sudo[2477]:   simonp : TTY=pts/0 ; PWD=/home/simonp ; USER=root ; COMMAND=/usr/bin/journalctl -xe
Sep 18 16:18:49 XPS8930 kernel: audit: type=1101 audit(1600471129.311:181): pid=2477 uid=1000 auid=1000 ses=4 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="simonp" exe="/usr/bin>
Sep 18 16:18:49 XPS8930 kernel: audit: type=1110 audit(1600471129.311:182): pid=2477 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct="root" exe="/usr/bin/sudo" h>
Sep 18 16:18:49 XPS8930 sudo[2477]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Sep 18 16:18:49 XPS8930 audit[2477]: USER_START pid=2477 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? ad>
Sep 18 16:18:49 XPS8930 kernel: audit: type=1105 audit(1600471129.314:183): pid=2477 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe=">
lines 1990-2023/2023 (END)

I tried server role = auto, server role = standalone, server role = member server, and server role = classic primary domain controller in the configuration file, but the error persisted. Any help would be greatly appreciated.

Solved by following the steps listed in https://archived.forum.manjaro.org/t/howto-minimal-configuration-for-manjaro-samba-share/104984

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.