[Samba] Samba4 - Printer Drivers install fails

Mueller mueller at tropenklinik.de
Thu Nov 21 14:13:03 UTC 2019


https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server#Supported_Print_Server_Back_Ends
Did you: 
# net rpc rights grant "SAMDOM\Domain Admins" SePrintOperatorPrivilege -U "SAMDOM\administrator"

Greetings 
Daniel


-----Ursprüngliche Nachricht-----
Von: Rowland penny via samba [mailto:samba at lists.samba.org] 
Gesendet: Donnerstag, 21. November 2019 13:01
An: samba at lists.samba.org
Betreff: Re: [Samba] Samba4 - Printer Drivers install fails

On 21/11/2019 11:03, Julien TEHERY via samba wrote:
> Hi,
>
>
> I have a question about printer drivers management in Samba4 (Samba 
> version 4.7.6, Ubuntu 18)
>
> I use MMC to add new drivers to an existing cups printers, and some of 
> them are simply refused.
>
> I know the samba4/cups server is operationnal as i'm able to add new 
> printers or drivers to it through MMC.
>
> I guess it's not a permission problem on the server as i perform the 
> operation as domain administrator and i'm able tu upload some drivers.
>
> The setup only fails for specific drivers (x64, type3 - user mode) but 
> i d'on't know why.
>
> I precise i upload those drivers from a 64 bits windows. I even tried 
> this parameter on cups's  smb.conf :
>
>  spoolss: architecture = Windows x64
>
>
> I also read the whole page from
> https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_D
> ownloads_for_Windows_Clients#32-bit_and_64-bit_Drivers
>
>
> in MMC, Error are:
>
> - first popup with "Access denied" => weird answer as i'm able to 
> upload other drivers
>
> - second popup ends with error 0x00000578
>
>
> in Samba4/cups server logs, we have:
>
>  mo[2019/11/21 11:57:41.151380,  0]
> ../source3/printing/nt_printing.c:1145(move_driver_file_to_download_ar
> ea)
>   move_driver_file_to_download_area: Unable to rename 
> [x64/{B0E1DB56-0727-46FB-AD9C-4CD07F0DA5DD}/driverinstall_pre_vista_1]
> to [x64/3/DriverInstall_Pre_Vista_1]: NT_STATUS_OBJECT_NAME_NOT_FOUND
> [2019/11/21 11:57:41.161179,  0]
> ../source3/rpc_server/spoolss/srv_spoolss_nt.c:8612(_spoolss_AddPrinte
> rDriverEx)
>   _spoolss_AddPrinterDriverEx: move_driver_to_download_area failed - 
> WERR_ACCESS_DENIED
>
> On the server, permissions are:
>
> drwxrwxr-x+  9 administrator domain admins   4096 nov.  20 14:33
> printers/
> ll /var/lib/samba/printers/
>
> drwxrwxr-x+ 9 administrator domain admins 4096 nov.  20 14:33 ./
> drwxr-xr-x  6 root          root          4096 nov.  21 10:03 ../
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 IA64/
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 
> drwxrwxr-x+ W32ALPHA/
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 W32MIPS/
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 W32PPC/
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 W32X86/
> drwxrwxr-x+ 2 administrator domain admins 4096 nov.  20 14:33 WIN40/
> drwxrwxr-x+ 3 administrator domain admins 4096 nov.  21 11:57 x64/
>
>  ll /var/lib/samba/printers/x64/
> drwxrwxr-x+ 3 administrator domain admins 4096 nov.  21 11:57 ./
> drwxrwxr-x+ 9 administrator domain admins 4096 nov.  20 14:33 ../
> drwxrwxr-x+ 2 administrator domain users  4096 nov.  21 10:04 3/
>
>
> Any idea of what the problem is?
>
Not entirely sure, but why does 'Administrator' own something on a Unix machine, it should be 'root'.

Rowland



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


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




More information about the samba mailing list