Samba failed to init printing subsystem

Hi,

I have an issue with Samba and shared directories to Windows.

Today, I updated my openSUSE TW running the command zypper dup. Before it, Samba was working normal, and the directories I am sharing from openSUSE to Windows was being accessed from Windows, but once I updated the system, Samba isn’t starting.

What do I get when I run systemctl status:


× smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2021-10-11 11:52:44 -05; 9min ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
    Process: 11203 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
    Process: 11207 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
   Main PID: 11207 (code=exited, status=1/FAILURE)
     Status: "daemon failed to start: Samba failed to init printing subsystem"
      Error: 13 (Permiso denegado)
        CPU: 73ms

oct 11 11:52:44 localhost.localdomain systemd[1]: Starting Samba SMB Daemon...
oct 11 11:52:44 localhost.localdomain smbd[11207]: [2021/10/11 11:52:44.504126,  0] ../../source3/smbd/server.c:1738(main)
oct 11 11:52:44 localhost.localdomain smbd[11207]:   smbd version 4.15.0-git.185.378416e547cSUSE-oS15.5-x86_64 started.
oct 11 11:52:44 localhost.localdomain smbd[11207]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
oct 11 11:52:44 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
oct 11 11:52:44 localhost.localdomain smbd[11207]: [2021/10/11 11:52:44.531727,  0] ../../lib/util/become_daemon.c:119(exit_daemon)
oct 11 11:52:44 localhost.localdomain smbd[11207]:   exit_daemon: daemon failed to start: Samba failed to init printing subsystem, error code 13
oct 11 11:52:44 localhost.localdomain systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
oct 11 11:52:44 localhost.localdomain systemd[1]: smb.service: Failed with result 'exit-code'.

How can I to work again with Samba?

https://bugzilla.opensuse.org/show_bug.cgi?id=1191532

As in the description you mention TW I assume then the prefix should read TUMBLEWEED and not OTHER VERSION.

I changed it.

Ran into the same problem, decided to disable the print services as I don’t use them anyway.

Basically in a console

sudo vi /etc/samba/smb.conf

to open the smb config file (hit the insert key to start editting, hit escape to get out of editting mode and then type “:x [enter]” to save and exit)
What I editted was based on serverfault.com - basically adding this to the [global] section:

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

one “sudo systemctl start smb” later and I got smb running again :).