[Samba] Print Server - Cannot add some drivers

Luke Barone lukebarone at gmail.com
Tue Jul 25 21:56:46 UTC 2023


Unfortunately, even after updating to the latest in Debian Bookworm, I'm
still experiencing the same issue.

log.rpcd_spoolss:
[2023/07/25 14:53:24,  0]
../../source3/param/loadparm.c:3461(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/prnproc$
failed. Permission denied
[2023/07/25 14:53:24,  0]
../../source3/param/loadparm.c:3461(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/prnproc$
failed. Permission denied
[2023/07/25 14:53:28,  0]
../../source3/param/loadparm.c:3461(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/prnproc$
failed. Permission denied
[2023/07/25 14:53:29,  0]
../../source3/printing/nt_printing.c:1482(move_driver_file_to_download_area)
  move_driver_file_to_download_area: Unable to rename
[x64/{7857A443-87CA-4929-991B-A2FCBBF30D04}/KOAXCA_A.ppd.NTamd64] to
[x64/3/KOAXCA_A.ppd.NTamd64]: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2023/07/25 14:53:29,  0]
../../source3/rpc_server/spoolss/srv_spoolss_nt.c:8716(_spoolss_AddPrinterDriverEx)
  _spoolss_AddPrinterDriverEx: move_driver_to_download_area failed -
WERR_APP_INIT_FAILURE

(And the folder in the second-last entry does not exist, so the file is
obviously not there)

smb.conf:
[global]
        server role = member server
        security = ADS
        workgroup = EXAMPLE
        realm = EXAMPLE.COM

        interfaces = lo enp1s0
        bind interfaces only = yes

        log file = /var/log/samba/%m.log
        log level = 1

        # Default ID mapping configuration for local BUILTIN accounts
        # and groups on a domain member. The default (*) domain:
        # - must not overlap with any domain ID mapping configuration!
        # - must use an read-write-enabled back end, such as tdb.
        idmap config * : backend = tdb
        idmap config * : range = 70000-99999

        # Use idmap_rid for domain accounts
        idmap config HARW : backend = rid
        idmap config HARW : range = 100000-199999

        # Configure winbind
        winbind nss info = template
        template shell = /bin/false
        template homedir = /home/EXAMPLE/%U
        winbind separator = /

        # Enable extended ACLs globally
        vfs objects = acl_xattr
        map acl inherit = yes
        store dos attributes = yes

        client signing = mandatory
        server signing = mandatory

        # Turn off NetBIOS, since our clients don't need it
        disable netbios = yes
    # Printing support
#    rpc_server:spoolss = external
#    rpc_daemon:spoolssd = fork
    printing = CUPS
    spoolss: architecture = Windows x64
#    rpcd_spoolss:idle_seconds=75
#    rpcd_spoolss:num_workers = 10
#    spoolssd:prefork_min_children = 10
#    spoolssd:prefork_max_children = 50
#    spoolssd:prefork_spawn_rate = 5
#    spoolssd:prefork_max_allowed_clients = 500
#    spoolssd:preform_child_min_life = 60
# Samba 4.16 and later support
    rpcd_spoolss:idle_seconds=30

    printcap name = /var/run/cups/printcap
    printcap cache time = 60

[printers]
    path = /var/spool/samba/
    printable = yes

[print$]
    path = /usr/local/share/printer_drivers/
    read only = no

Running Samba 4.17.9-Debian on Debian Bookworm. Using the Domain
Administrator to try to add the drivers.


On Thu, Jul 22, 2021 at 12:34 AM Marco Gaiarin via samba <
samba at lists.samba.org> wrote:

> Mandi! Luke Barone via samba
>   In chel di` si favelave...
>
> > I am trying to add Konica Minolta signed x64 drivers to a new print
> server
> > running Samba 4.13.5 on Debian. I can add Lexmark drivers without a
> problem.
>
> I'm not using the latest samba release, so if you can upgrade, plese do
> so and provide feedback.
>
> Same trouble here (same MFP, but i prefere PCL drivers); but this also
> apply to other vendor (e.g., Brother printers load the driver but
> enable the 'admin locked' feature and you cannot print more then one
> page).
>
> Seems that this driver are simply broken; i've resort of installing
> drivers via other means (WPKG, for me).
>
>
> Also, with latest Microsoft bugs, Point'n'Print is practically
> disabled, so fix it could be totally useless...
>
> --
> dott. Marco Gaiarin                                     GNUPG Key ID:
> 240A3D66
>   Associazione ``La Nostra Famiglia''
> http://www.lanostrafamiglia.it/
>   Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento
> (PN)
>   marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f
> +39-0434-842797
>
>                 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
>       http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
>         (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list