Can't print after update to 4.13
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Unknown
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
High
|
Andreas Hasenack | ||
Focal |
Fix Released
|
High
|
Andreas Hasenack | ||
Impish |
Won't Fix
|
High
|
Andreas Hasenack | ||
Jammy |
Fix Released
|
High
|
Andreas Hasenack |
Bug Description
[Impact]
After installing the 2021-10 Monthly Rollup patch (KB5006743), printing no longer works.
[Test Plan]
Bringing up a test environment for this issue is complex, as it involves:
- setting up a samba AD controller (perhaps a plain NT controller is sufficient)
- setting up printing on said controller
- joining windows 7 to the directory
- applying (or not) the KB5006743 update for testing before and after
We thus will rely on community members to test this fix.
The test is: print from an unprivileged normal user account.
[Where problems could occur]
Samba is a complex piece of software, specially when used in the Active Directory Domain Controller role. Printing doesn't make it simpler.
The configuration file smb.conf is reloaded periodically in the background if there were changes, so I don't think a service restart would uncover previously undetected invalid configuration.
Calls to switch privileges for a specific function must come in pairs, and that is the case with this fix with regard to become/
There is no verification whether unbecome_root succeeded in this patch, but that seems to be the pattern everywhere else. Maybe the function panics() if it fails, I couldn't verify that.
[Other Info]
Not at this time.
[Original Description]
After updating my AD-DC to samba 4.13 I am unable to print from normal user accounts (Windows is logging "Win32 error code returned by the print processor: 50. The request is not supported."). Also the Log is full with entries like this:
[2021/11/19 01:48:37.496949, 0] ../../source3/
dcesrv_
Enabling debug logs show that this is caused by the ownership of a directory which samba complains is not matching:
[2021/11/19 01:48:37.482365, 4, effective(30000XX, 100), real(30000XX, 0)] ../../source3/
Create of internal pipe \pipe\spoolss requested
[2021/11/19 01:48:37.485785, 3, effective(30000XX, 100), real(30000XX, 0)] ../../lib/
directory_
[2021/11/19 01:48:37.485807, 1, effective(30000XX, 100), real(30000XX, 0)] ../../source3/
imessaging_init failed
That is, because /var/lib/
I am not sure if this is also the cause for the printing issue, but this spam in the log is super annoying aswell and should be fixed.
Futher information about the system:
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Arch: amd64
Samba-Version: 2:4.13.
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 3141 lines (+2488/-97)16 files modifieddebian/changelog (+2253/-0)
debian/control (+6/-5)
debian/ctdb.example/nfs-kernel-server/enable-nfs.sh (+26/-36)
debian/ctdb.example/nfs-kernel-server/nfs.conf (+20/-0)
debian/ctdb.example/nfs-kernel-server/quota (+5/-0)
debian/patches/VERSION.patch (+2/-2)
debian/patches/add-support-for-bind-918-2.patch (+51/-0)
debian/patches/add-support-for-bind-918.patch (+54/-0)
debian/patches/fix-nfs-service-name-to-nfs-kernel-server.patch (+37/-28)
debian/patches/series (+2/-0)
debian/rules (+4/-0)
debian/smb.conf (+15/-9)
debian/tests/cifs-share-access-uring (+6/-0)
debian/tests/smbclient-share-access-uring (+6/-0)
debian/tests/util (+1/-1)
dev/null (+0/-16)
- Robie Basak: Pending requested
-
Diff: 924 lines (+523/-225) (has conflicts)9 files modifieddebian/changelog (+297/-197)
debian/control (+4/-4)
debian/ctdb.example.enable.nfs.sh (+189/-0)
debian/ctdb.example/nfs-kernel-server/enable-nfs.sh (+4/-4)
debian/ctdb.example/nfs-kernel-server/nfs.conf (+20/-0)
debian/ctdb.example/nfs-kernel-server/quota (+5/-0)
debian/patches/series (+2/-2)
debian/rules (+2/-2)
dev/null (+0/-16)
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 256 lines (+234/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1951490-fix-printing-KB5006743.patch (+226/-0)
debian/patches/series (+1/-0)
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 256 lines (+234/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1951490-fix-printing-KB5006743.patch (+226/-0)
debian/patches/series (+1/-0)
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 260 lines (+238/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1951490-fix-printing-KB5006743.patch (+230/-0)
debian/patches/series (+1/-0)
Changed in samba (Ubuntu): | |
importance: | Undecided → High |
Changed in samba (Ubuntu): | |
assignee: | nobody → Ubuntu Security Team (ubuntu-security) |
tags: |
added: server-todo removed: server-next |
tags: | added: patch |
tags: |
added: server-todo removed: server-next |
Changed in samba (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in samba (Ubuntu Jammy): | |
status: | Confirmed → In Progress |
Changed in samba (Ubuntu Focal): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in samba (Ubuntu Impish): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
Changed in samba (Ubuntu Focal): | |
status: | New → In Progress |
description: | updated |
Changed in samba (Ubuntu Impish): | |
importance: | Undecided → High |
Changed in samba (Ubuntu Focal): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
tags: |
added: verification-done-focal removed: verification-needed-focal |
tags: | removed: server-todo |
Status changed to 'Confirmed' because the bug affects multiple users.