Re: get_printer_list_db: Failed to open printer_list.tdb

Andreas Schneider via samba <[email protected]> Sun, 19 Apr 2026 07:21:28 +0200
Newsgroups gmane.network.samba.general,gmane.network.samba.internals
Message-ID <31350800.1r3eYUQgxm@magrathea>
On Saturday, 18 April 2026 08:44:49 Central European Summer Time Michael 
Tokarev wrote:
> On 18.04.2026 09:37, Michael Tokarev wrote:
> ..
> 
> > This is rpcd_spoolss, running as a user (uid=1064), doing things as
> > user which aren't supposed to be run as user.
> > 
> > It looks like the whole thing here is quite broken.  It does many
> > strange things - like constantly poking /root/.krb5/config &
> > /etc/hx509.conf, constantly creating and destroying epool fd,
> > and some more.
> > 
> > But the most important is that it does the creation of a global
> > printer_list.db as user, not as root.
> > 
> > For now, in order to keep our systems a bit saner, I replaced
> > contents of get_printer_list_db() with "return NULL" - since
> > this file is never created anyway, and it has always been that
> > way, it looks like.  I wonder if I can do the same for debian,
> > to avoid having two builds (one local one debian), - and if yes,
> > maybe I can remove whole lot of other code which run this
> > function.
> 
> ..or maybe just revert
> 
> commit 9080cd30d517cb50954e440bb4475c2eeb678906
> Author: Andreas Schneider <[email protected]>
> Date:   Wed Jun 22 18:56:26 2022 +0200
> 
>      s3:printing: Do not clear the printer-list.tdb
> 
> which seems to help too (Cc'ing asn@).

You read the full commit message of that commit, did you?


Isn't the obvious question, why is the rpcd_spoolss running as a user an not 
root? Without details and log files we don't know. Guessing and reverting 
random commit is not the way how to fix issues.

Just my 2c



	Andreas

-- 
Andreas Schneider                      [email protected]
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba