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_Downloads_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_area) ? 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_AddPrinterDriverEx) ? _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 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? The printer drivers are: - impxeroxc405??? ??? imprimante Xerox Versalink c405 - impxeroxc8030??? ? imprimante Xerox Altalink c8030 - lexxc4140??? ??? ??? ? imprimante Lexmark XC 4140 -- Regards, Julien <https://visitor.weyou-group.com/heavent-paris/2019/inscription>
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_Downloads_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_area) > ? 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_AddPrinterDriverEx) > ? _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 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
Mandi! Julien TEHERY via samba In chel di` si favelave...> I have a question about printer drivers management in Samba4 (Samba version > 4.7.6, Ubuntu 18)First, verify that drivers loading work, with another standard printer, eg, Apple Color LaserJet for examples. Secondly... driver loading is very 'picky'. Try to: a) load the driver 2-5 time subsequently, sometime work b) if the driver have some '.cab' file (mostly: multilingual) try to unpack (a|your language) .cab and retry. c) try different driver (eg: PostScript instead of PCL) d) load the driver in a windows box, then 'copy' them via RPC: https://www.samba.org/samba/docs/old/Samba3-HOWTO/classicalprinting.html#inst-rpc Some drivers are simply 'broken'. There's no way to make it work. ;-( -- 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)
> Not entirely sure, but why does 'Administrator' own something on a > Unix machine, it should be 'root'. > > Rowland > >Even with root as owner or chmod777 on target directory result in the same error. I also tried to upload it from windows7 64 bits or win10 64 bits workstation, same result. So i tried with another user account which is domain administrator and has SePrintOperatorPrivileg. Same result. It's becoming very annoying as printing is at the heart of a very important project for us.
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
Mandi! Julien TEHERY via samba> In chel di` si favelave... > >> I have a question about printer drivers management in Samba4 (Samba version >> 4.7.6, Ubuntu 18) > First, verify that drivers loading work, with another standard printer, > eg, Apple Color LaserJet for examples. > > > Secondly... driver loading is very 'picky'. Try to: > > a) load the driver 2-5 time subsequently, sometime workYes i did it soooo many times :)> > b) if the driver have some '.cab' file (mostly: multilingual) try to > unpack (a|your language) .cab and retry.it's not the case> c) try different driver (eg: PostScript instead of PCL) > > d) load the driver in a windows box, then 'copy' them via RPC: > > https://www.samba.org/samba/docs/old/Samba3-HOWTO/classicalprinting.html#inst-rpc> I never used this way, but even if it works, MMC is managed by non linux admins, so i really intend to make it work through MMC> > > Some drivers are simply 'broken'. There's no way to make it work. ;-( >> I hope not ;)
Try this. In both printer shares set: acl_xattr:ignore system acl = yes Read/Use these as guideline to setup the rights. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj190062(v%3Dws.11) You MUST do this all from with a windows PC. And you should never touch these folders again from within Linux. Also i notice you use the Ubuntu samba version. Samba version 4.7.6, Ubuntu 18.. Setup as said above if it does not work, upgrade that samba to 4.11.2 You can find a pre-compiled here. https://apt.van-belle.nl/ (setup) wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc | apt-key add - echo "deb http://apt.van-belle.nl/debian bionic-samba411 main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list Reboot, test again. And if you point me to the exact driver your trying, i'll test it for you on my print server. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Julien TEHERY via samba > Verzonden: donderdag 21 november 2019 15:00 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Samba4 - Printer Drivers install fails > > > Not entirely sure, but why does 'Administrator' own something on a > > Unix machine, it should be 'root'. > > > > Rowland > > > > > Even with root as owner or chmod777 on target directory result in the > same error. > > I also tried to upload it from windows7 64 bits or win10 64 bits > workstation, same result. > > > So i tried with another user account which is domain > administrator and > has SePrintOperatorPrivileg. Same result. > > It's becoming very annoying as printing is at the heart of a very > important project for us. > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Hi Julien, Le 21/11/2019 ? 12:03, Julien TEHERY via samba a ?crit?:> I have a question about printer drivers management in Samba4 (Samba > version 4.7.6, Ubuntu 18) > [...]I read the all thread and... one suggestion... If your windows client is 10 (didn't see the info, perhaps I missed something)... then can you try from a w7 client ? I had been confronted to a very similar problem and it did the trick, don't know why... See here : https://lists.samba.org/archive/samba/2017-November/211918.html Perhaps it will help... -- Manu
I tested Friday also with a W7 pc. Not working, im try to see what i can do today on this problem. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Manu > Baylac via samba > Verzonden: zondag 24 november 2019 20:10 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Samba4 - Printer Drivers install fails > > Hi Julien, > > > Le 21/11/2019 ? 12:03, Julien TEHERY via samba a ?crit?: > > > I have a question about printer drivers management in Samba4 (Samba > > version 4.7.6, Ubuntu 18) > > [...] > > I read the all thread and... one suggestion... > > If your windows client is 10 (didn't see the info, perhaps I missed > something)... then can you try from a w7 client ? > > I had been confronted to a very similar problem and it did the trick, > don't know why... > See here : > https://lists.samba.org/archive/samba/2017-November/211918.html > > Perhaps it will help... > > -- > Manu > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Le 25/11/2019 ? 09:15, L.P.H. van Belle via samba a ?crit?:> I tested Friday also with a W7 pc. > Not working, im try to see what i can do today on this problem. > > Greetz, > > LouisHi Louis, Thanks for your help. I'm still investigating on it, but sadly i cannot upgrade to 4.11 as those servers cannot reach external repositories for security reasons (those servers belong to a client which only accepts ubuntu oficial repositories..)
No worries, i tested the 4.11.2, so not needed for you to test also. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Julien TEHERY via samba > Verzonden: maandag 25 november 2019 9:23 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Samba4 - Printer Drivers install fails > > Le 25/11/2019 ? 09:15, L.P.H. van Belle via samba a ?crit?: > > I tested Friday also with a W7 pc. > > Not working, im try to see what i can do today on this problem. > > > > Greetz, > > > > Louis > > Hi Louis, > > Thanks for your help. I'm still investigating on it, but > sadly i cannot > upgrade to 4.11 as those servers cannot reach external > repositories for > security reasons (those servers belong to a client which only accepts > ubuntu oficial repositories..) > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Hi Julien, Le 11/21/2019 ? 12:03 PM, Julien TEHERY via samba a ?crit :> > Any idea of what the problem is? > > > The printer drivers are: > > - impxeroxc405 imprimante Xerox Versalink c405 > > - impxeroxc8030 imprimante Xerox Altalink c8030 > - lexxc4140 imprimante Lexmark XC 4140reading through the thread it looks like you are doing all the right things. I remember having fought with Xerox drivers and Samba-CUPS in the past (seems like you driver is quite old since it still reference windows Vista). I gave up at that time and installed a Windows print server because of a Xerox driver. Like Marco was saying, some driver are just unable to upload on the server. Actually it is not necessary to have the driver on the print server, you can deploy the driver with another mean. If the driver is pre-installed locally (through a software deployment tool like WAPT or SSCM), you just have to match the string of the driver on the server in the print queue configuration. You can edit the print queue configuration through network registry (or samba_registry), and add the Printer Driver attribute with the proper string (just look at a properly configured queue for comparison). Or you can automate print queue configuration directly on the workstation and avoid print server altogether. If there is no accounting or auditing/tracing, direct printing is also be a good solution, once configuration is automated. Cheers, Denis> >-- Denis Cardon Tranquil IT 12 avenue Jules Verne (Bat. A) 44230 Saint S?bastien sur Loire (FRANCE) tel : +33 (0) 240 975 755 http://www.tranquil.it Tranquil IT recrute! https://www.tranquil.it/nous-rejoindre/ Samba install wiki for Frenchies : https://dev.tranquil.it WAPT, software deployment made easy : https://wapt.fr