Samba update today failed to restart if printer lines in smb.conf
Am Mittwoch, 2. Februar 2022, 04:45:42 CET schrieb Larry Len Rainey:
Samba broke in todays 15.3 update - is it apparmor or bug?
I can confirm, samba doesn't start anymore. I just opened https://bugzilla.opensuse.org/show_bug.cgi?id=1195412 about it. As a workaround: zypper al -t patch openSUSE-SLE-15.3-2022-283 zypper al -t package "samba = 4.13.13+git.539.fdbc44a8598-3.20.2" then, use yast to roll back to the previous version. Cheers MH
LLR1:~ # systemctl status smb
● smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor prese> Active: failed (Result: exit-code) since Tue 2022-02-01 21:27:13 CST; 8s a> Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 9455 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (> Process: 9460 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMB> Main PID: 9460 (code=exited, status=1/FAILURE) Status: "daemon failed to start: Samba failed to init printing subsystem" Error: 13 (Permission denied)
Feb 01 21:27:13 LLR1 systemd[1]: Starting Samba SMB Daemon... Feb 01 21:27:13 LLR1 smbd[9460]: [2022/02/01 21:27:13.529676, 0] ../../source3> Feb 01 21:27:13 LLR1 smbd[9460]: smbd version 4.15.4-git.324.8332acf1a6315030> Feb 01 21:27:13 LLR1 smbd[9460]: Copyright Andrew Tridgell and the Samba Team> Feb 01 21:27:13 LLR1 systemd[1]: Started Samba SMB Daemon. Feb 01 21:27:13 LLR1 smbd[9460]: [2022/02/01 21:27:13.548557, 0] ../../lib/uti> Feb 01 21:27:13 LLR1 smbd[9460]: exit_daemon: daemon failed to start: Samba f> Feb 01 21:27:13 LLR1 systemd[1]: smb.service: Main process exited, code=exited,> Feb 01 21:27:13 LLR1 systemd[1]: smb.service: Failed with result 'exit-code'.
I had to delete these lines to make it work. [printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No printable = yes
[print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775
LLR1:/etc/samba # systemctl status smb ● smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor prese> Active: active (running) since Tue 2022-02-01 21:33:13 CST; 10min ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 10353 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile > Main PID: 10365 (smbd) Status: "smbd: ready to serve connections..." Tasks: 13 (limit: 4915) CGroup: /system.slice/smb.service ├─10365 /usr/sbin/smbd --foreground --no-process-group ├─10367 /usr/sbin/smbd --foreground --no-process-group ├─10368 /usr/sbin/smbd --foreground --no-process-group ├─10369 /usr/lib64/samba/samba-bgqd --ready-signal-fd=47 --parent-> ├─10384 /usr/sbin/smbd --foreground --no-process-group ├─11235 /usr/sbin/smbd --foreground --no-process-group ├─12174 /usr/sbin/smbd --foreground --no-process-group ├─12175 /usr/sbin/smbd --foreground --no-process-group ├─12176 /usr/sbin/smbd --foreground --no-process-group ├─12177 /usr/sbin/smbd --foreground --no-process-group ├─12178 /usr/sbin/smbd --foreground --no-process-group ├─12179 /usr/sbin/smbd --foreground --no-process-group └─12181 /usr/sbin/smbd --foreground --no-process-group
Feb 01 21:33:12 LLR1 systemd[1]: Starting Samba SMB Daemon... Feb 01 21:33:12 LLR1 update-apparmor-samba-profile[10353]: Reloading updated Ap> Feb 01 21:33:13 LLR1 smbd[10365]: [2022/02/01 21:33:13.129861, 0] ../../source> Feb 01 21:33:13 LLR1 smbd[10365]: smbd version 4.15.4-git.324.8332acf1a631503> Feb 01 21:33:13 LLR1 smbd[10365]: Copyright Andrew Tridgell and the Samba Tea> Feb 01 21:33:13 LLR1 systemd[1]: Started Samba SMB Daemon. Feb 01 21:33:13 LLR1 systemd[1]: smb.service: Got notification message from PID> Feb 01 21:43:16 LLR1 smbd[12180]: [2022/02/01 21:43:16.567854, 0] ../../source> Feb 01 21:43:16 LLR1 smbd[12180]: Invalid SMB packet: first request: 0x0001
-- Mathias Homann Mathias.Homann@openSUSE.org Jabber (XMPP): lemmy@tuxonline.tech Matrix: @mathias:eregion.de IRC: [Lemmy] on freenode and ircnet (bouncer active) keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102
On 2022-02-02 04:45, Larry Len Rainey wrote:
Samba broke in todays 15.3 update - is it apparmor or bug?
15.3 questions are not to be asked in the factory mail list, so I will reply in the "support@lists.opensuse.org" mail list. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
participants (3)
-
Carlos E. R.
-
Larry Len Rainey
-
Mathias Homann