Hai Manu,> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Manu > Baylac via samba > Verzonden: vrijdag 3 november 2017 20:21 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Unable to upload printer drivers > > Hello Louis and list, > > > Le 03/11/2017 à 10:25, L.P.H. van Belle via samba a écrit : > > > Sorry for the slow reaction here. I was few days out of the office. > > No problem, thanks for your quick answer. > > > But can you try the universal 2 driver. That one works fine for me. > > And if you send me the exact driver your trying to me, i'll > test that one in my setup. > > In my second mail, i said that finally i successfully installed the > driver... but only once... > i deleted the driver, reinstalled and... same error.You might have hit a bug here.> > After hours and near becoming crazy (because it is a very > basic setup), > trying to reproduce the problem before responding, i finally > installed a > win7 and...booo...no problem, works fine with all drivers... > > I'm not a windows user, so i downloaded win10 from microsoft website > for my platform test since now it's possible. And in the > school where i get the exactly same error, they have official windows10 with > purchased licenses. > So a friend gave me an official iso of W7 to test in the same > context on > my platform and it works like a charm, i didn't change anything in my > configuration. > > The driver i used is the one you mentioned (i wrote type 3 because on > the wiki page the term is used and the full error on windows > side is : > impossible to install Toshiba Universal Printer2, type3 - > user mode, x64 > access denied). The only available driver on toshiba official site is > W2012/8.1/8, but i think it is compatible with w10 since this > printer is > still proposed by suppliers. > > So, Louis, do you tested under windows10 ??? The problem is > that in the > school they use windows10 so i must find the solution.I normaly onlu use windows 7, since that works fine for me, but i'll setup a win10 and give it a try. My cups server publishes x64 by default and you need a win32 and a win64 pc to upload both drivers. Atm i only do 64bit drivers since i dont have any 32bit os running anymore.> > And what does mean NT_STATUS_SHARING_VIOLATION error ?I this this is related to : access denied Now, this is something you can try and i'll explain what is difference in my setup. Most users dont use spoolss and dont use the architecture setttings. rpc_server:spoolss = external rpc_daemon:spoolssd = fork spoolss:architecture = Windows x64 Now, since you number ... Somany who says its not working and here it is, ive done a good checka again in my setup. ( the install if from 2015, as of samba 4.2 ) There as a "historyical" bug, about lower and uppercased characters in (Debian) /var/lib/samba/printers/ The good layout, untouched as of 2016. root at rtd-print1:~# ls -al /var/lib/samba/printers/ drwxr-xr-x 2 root root 4096 Mar 11 2016 COLOR drwxr-xr-x 2 root root 4096 Mar 11 2016 IA64 drwxr-xr-x 2 root root 4096 Mar 11 2016 W32ALPHA drwxr-xr-x 2 root root 4096 Mar 11 2016 W32MIPS drwxr-xr-x 2 root root 4096 Mar 11 2016 W32PPC drwxr-xr-x 2 root root 4096 Mar 11 2016 W32X86 drwxr-xr-x 2 root root 4096 Mar 11 2016 WIN40 drwxr-xr-x 2 root root 4096 Mar 11 2016 x64 But this is what im using ( since aug 2015 ) I symlinked very folder lower to uppercase, now this bug was i believe on the X64/x64, but i did them all. root at rtd-print1:~# ls -al /home/samba/printers/ drwxr-xr-x 4 root root 4096 Aug 7 10:35 .. lrwxrwxrwx 1 root root 5 Aug 2 2016 color -> COLOR drwxrwx---+ 2 root root 4096 Aug 6 2015 COLOR lrwxrwxrwx 1 root root 4 Aug 2 2016 ia64 -> IA64 drwxrwx---+ 2 root root 4096 Aug 6 2015 IA64 drwxrwx---+ 2 root root 4096 Aug 6 2015 W32ALPHA lrwxrwxrwx 1 root root 7 Aug 2 2016 w32mips -> W32MIPS drwxrwx---+ 2 root root 4096 Aug 6 2015 W32MIPS lrwxrwxrwx 1 root root 6 Aug 2 2016 w32ppc -> W32PPC drwxrwx---+ 2 root root 4096 Aug 6 2015 W32PPC lrwxrwxrwx 1 root root 6 Aug 2 2016 w32x86 -> W32X86 drwxrwx---+ 4 root root 4096 Oct 24 2016 W32X86 lrwxrwxrwx 1 root root 5 Aug 2 2016 win40 -> WIN40 drwxrwx---+ 2 root root 4096 Aug 6 2015 WIN40 drwxrwx---+ 3 root root 4096 Oct 10 09:59 x64 lrwxrwxrwx 1 root root 3 Aug 18 2016 X64 -> x64 At least a thing you can try.> > Ah, and when i try to upload under w10 the 32 bits driver, > same error on > windows but the NT_ error doesn't appear in syslog. > > Here is what can i say...with my poor english, sorry.Ah, well its as good as mine ;-)> > Any suggestion ? > > Thanks ! > > Regards, > > -- > ManuGreetz, Louis
Hello Louis, Le 06/11/2017 à 11:22, L.P.H. van Belle via samba a écrit :> I normaly onlu use windows 7, since that works fine for me, but i'll setup a win10 and give it a try.Ok, cool.> My cups server publishes x64 by default and you need a win32 and a win64 pc to upload both drivers.Yes I know this, see below.> Now, this is something you can try and i'll explain what is difference in my setup. > Most users dont use spoolss and dont use the architecture setttings. > rpc_server:spoolss = external > rpc_daemon:spoolssd = fork > spoolss:architecture = Windows x64I gave my smb.conf in my first mail and I've got this lines, I strictly followed the wiki. And also tried without, and same error uploading 32 bit driver.> There as a "historyical" bug, about lower and uppercased characters in (Debian) /var/lib/samba/printers/ > I symlinked very folder lower to uppercase, now this bug was i believe on the X64/x64, but i did them all.Yes, i saw an old thread where you proposed that. Also tried this... and same error. But we can see that it tries to copy to x64 folder. And randomly sometimes there is a second error WERR_ACCESS_DENIED (with administrator account or domain admins account) who have full rights. Nov 6 12:09:01 winix-test-ps2 smbd[465]: [2017/11/06 12:09:01.240015, 0, pid=465, effective(0, 0), real(0, 0)] ../source3/printing/nt_printing.c:1144(move_driver_file_to_download_area) Nov 6 12:09:01 winix-test-ps2 smbd[465]: move_driver_file_to_download_area: Unable to rename [x64/{D1FB7FC7-C3D6-44BE-99F4-069DC8C66642}/eSf6usf_builtin.dll] to [x64/3/eSf6usf_builtin.dll]: NT_STATUS_SHARING_VIOLATION Nov 6 12:09:01 winix-test-ps2 smbd[465]: [2017/11/06 12:09:01.240123, 0, pid=465, effective(0, 0), real(0, 0), class=rpc_srv] ../source3/rpc_server/spoolss/srv_spoolss_nt.c:8614(_spoolss_AddPrinterDriverEx) Nov 6 12:09:01 winix-test-ps2 smbd[465]: _spoolss_AddPrinterDriverEx: move_driver_to_download_area failed - WERR_ACCESS_DENIED And another thing illogical : As i said, i can upload drivers without problem with w7, but i can't see the printers, despite with firefox of my windows i can see them... Did you do something particular to see printers under seven ? So i'm juggling w7 and w10... w7 to upload drivers and w10 to assign driver to the printer. So finally, i can finalize my setup, but i like understanding what I'm doing and the origin of problems :-) Thanks again Louis. Regards, -- Manu
Hai Manu, Can you post the output of: getfacl /var/lib/samba/printers And getfacl /var/lib/samba/printers/x64 And run net rpc rights list accounts -Uadministrator These are often forgotten or wrong set. NT Authority\SYSTEM NT Authority\Authenticated Users Set on the share AND folder rights. Share: SYSTEM: Full control. Share: Verified users: Full controll Folder security: SYSTEM: Full control Folder security: Verified users: Read My share for the driver setup: [print$] comment = Printer Drivers path = /var/lib/samba/printers acl_xattr:ignore system acl = yes browseable = yes writable = yes guest ok = no write list = root, @lpadmin, administrator, @"Domain Admins", @"Print Operators" # lpadmin also contains one of my users to have Kerberized SSO login on the cups webinterface. # without that kerberized SSO did not work. The management pc is win7 64bit and only "Administrator" is used on that (domain joined) pc. Win10 wel be tomorrow, then i have one free to use. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Manu > Baylac via samba > Verzonden: maandag 6 november 2017 12:32 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Unable to upload printer drivers > > Hello Louis, > > > Le 06/11/2017 à 11:22, L.P.H. van Belle via samba a écrit : > > > I normaly onlu use windows 7, since that works fine for me, > but i'll setup a win10 and give it a try. > > Ok, cool. > > > My cups server publishes x64 by default and you need a > win32 and a win64 pc to upload both drivers. > > Yes I know this, see below. > > > Now, this is something you can try and i'll explain what is > difference in my setup. > > Most users dont use spoolss and dont use the architecture setttings. > > rpc_server:spoolss = external > > rpc_daemon:spoolssd = fork > > spoolss:architecture = Windows x64 > > I gave my smb.conf in my first mail and I've got this lines, > I strictly > followed the wiki. > And also tried without, and same error uploading 32 bit driver. > > > > There as a "historyical" bug, about lower and uppercased > characters in (Debian) /var/lib/samba/printers/ > > I symlinked very folder lower to uppercase, now this bug > was i believe on the X64/x64, but i did them all. > > Yes, i saw an old thread where you proposed that. Also tried > this... and > same error. But we can see that it tries to copy to x64 folder. > > And randomly sometimes there is a second error > WERR_ACCESS_DENIED (with > administrator account or domain admins account) who have full rights. > > Nov 6 12:09:01 winix-test-ps2 smbd[465]: [2017/11/06 > 12:09:01.240015, > 0, pid=465, effective(0, 0), real(0, 0)] > ../source3/printing/nt_printing.c:1144(move_driver_file_to_dow > nload_area) > Nov 6 12:09:01 winix-test-ps2 smbd[465]: > move_driver_file_to_download_area: Unable to rename > [x64/{D1FB7FC7-C3D6-44BE-99F4-069DC8C66642}/eSf6usf_builtin.dll] to > [x64/3/eSf6usf_builtin.dll]: NT_STATUS_SHARING_VIOLATION > Nov 6 12:09:01 winix-test-ps2 smbd[465]: [2017/11/06 > 12:09:01.240123, > 0, pid=465, effective(0, 0), real(0, 0), class=rpc_srv] > ../source3/rpc_server/spoolss/srv_spoolss_nt.c:8614(_spoolss_A > ddPrinterDriverEx) > Nov 6 12:09:01 winix-test-ps2 smbd[465]: > _spoolss_AddPrinterDriverEx: > move_driver_to_download_area failed - WERR_ACCESS_DENIED > > > And another thing illogical : > > As i said, i can upload drivers without problem with w7, but > i can't see > the printers, despite with firefox of my windows i can see > them... Did you do something particular to see printers under seven ?No, if you use cups, then just wait about 15 min, do a refresh (on the pc print admin), and you should see the printer in the windows print admin. These are my steps i follow. 1, create printer in cups. 2, wait about 15 min to get if in the win printer admin. 3, update the driver. 4, attacht the drivers. 5, setup GPO to deploy them to the pc's. Clients are win7 and win10 64bit.> > So i'm juggling w7 and w10... w7 to upload drivers and w10 to assign > driver to the printer. > > So finally, i can finalize my setup, but i like understanding > what I'm > doing and the origin of problems :-) > > > Thanks again Louis. > > Regards, > > -- > Manu > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Hello Louis, Le 06/11/2017 à 13:30, L.P.H. van Belle via samba a écrit :> Can you post the output of: > > getfacl /var/lib/samba/printers > And > getfacl /var/lib/samba/printers/x64I didn't put any acl so these are the default ones. But the folders have root as owner and Administrator is mapped to root, and i do my things with Administrator account, so it doesn't seem to be a rights problem.> And run > net rpc rights list accounts -Uadministrator[...] BUILTIN\Administrators SeMachineAccountPrivilege SeTakeOwnershipPrivilege SeBackupPrivilege SeRestorePrivilege SeRemoteShutdownPrivilege SePrintOperatorPrivilege SeAddUsersPrivilege SeDiskOperatorPrivilege SeSecurityPrivilege SeSystemtimePrivilege SeShutdownPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeSystemProfilePrivilege SeProfileSingleProcessPrivilege SeIncreaseBasePriorityPrivilege SeLoadDriverPrivilege SeCreatePagefilePrivilege SeIncreaseQuotaPrivilege SeChangeNotifyPrivilege SeUndockPrivilege SeManageVolumePrivilege SeImpersonatePrivilege SeCreateGlobalPrivilege SeEnableDelegationPrivilege>> As i said, i can upload drivers without problem with w7, but >> i can't see he printers, despite with firefox of my windows i >> can see them...Mmm, windows7 firewall is the culprit. I deactivate it, refresh, and i can see my printers. So to sum it up, with the same configuration : - Under w7, all work fine (upload and assign to printer). - Under w10, i see the printer but unable to upload driver. I think it's a bug, maybe something to change in the .inf file. Tomorrow i will be at work and will try to install locally on a win10 the driver to confirm it works with this os. And ask to the administrator of another network that uses the same printer model to give me the driver he uses if it isn't the same. I 'm looking forward your feedback of your test under w10 :-) Thanks Louis. -- Manu
Hai Manu, Well, i can say... Its not you.. I did the following as test. Startup 2 pc's X64 w7 + w10 Open printer manager tool and connect to the server. Steps done. Create a new printer in cups. => after 15 min, in both pc's the new printer is shown correctly. Test 1 and 2. samba 4.6.8 and 4.6.9 own packages. W7, setup/upload/delete of an HP LaserjetII driver ( a original windows driver ) W7, result, everything works fine. W10, upload, fails, tried every ( option from windows ) to upload te driver. All fail. Link te test printer to the an other already uploaded driver, that works fine. Delete of the driver, ( uploaded by the Win7 ) works fine. Test 2. samba 4.6.9 own packages. W7, setup/upload/delete of an HP LaserjetII driver ( a original windows driver ) W7, result, everything works fine. W10, upload, fails, tried every ( option from windows ) to upload te driver. All fail. Link te test printer to the an other already uploaded driver, that works fine. Delete of the driver, ( uploaded by the Win7 ) works fine. I did set a debug level 10 and a grep on "error", and a snap of the messages. log.smbd.old:7556: get_ea_dos_attribute: Cannot get attribute from EA on file x64/{B0742FF4-0852-4602-897C-F2DA41E310D8}/..: Error = No data available log.smbd.old:8781:[2017/11/07 10:05:29.440354, 3, pid=936, effective(10000, 10000), real(10000, 0)] ../source3/smbd/smb2_server.c:3097(smbd_smb2_request_error_ex) log.smbd.old:8782: smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9] status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_directory.c:155 log.smbd.old:21983:[2017/11/07 10:05:29.563631, 3, pid=936, effective(10000, 10000), real(10000, 0)] ../source3/smbd/smb2_server.c:3097(smbd_smb2_request_error_ex) log.smbd.old:21984: smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9] status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_directory.c:155 log.smbd.old:33862: get_ea_dos_attribute: Cannot get attribute from EA on file x64/{B0742FF4-0852-4602-897C-F2DA41E310D8}/..: Error = No data available open_directory: unable to create x64/3. Error was NT_STATUS_OBJECT_NAME_COLLISION Now, some messages are fixed in 4.7.1. ( see : https://www.samba.org/samba/history/samba-4.7.1.html ) And i was already busy with building new 4.7.1 packages for debian so. Give me some time, and i'll report how test 3 is resulting. I'll post about the new package in few min also. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Manu > Baylac via samba > Verzonden: maandag 6 november 2017 18:49 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Unable to upload printer drivers > > Hello Louis, > > > Le 06/11/2017 à 13:30, L.P.H. van Belle via samba a écrit : > > > Can you post the output of: > > > > getfacl /var/lib/samba/printers > > And > > getfacl /var/lib/samba/printers/x64 > > I didn't put any acl so these are the default ones. > But the folders have root as owner and Administrator is > mapped to root, > and i do my things with Administrator account, so it doesn't > seem to be > a rights problem. > > > And run > > net rpc rights list accounts -Uadministrator > > [...] > BUILTIN\Administrators > SeMachineAccountPrivilege > SeTakeOwnershipPrivilege > SeBackupPrivilege > SeRestorePrivilege > SeRemoteShutdownPrivilege > SePrintOperatorPrivilege > SeAddUsersPrivilege > SeDiskOperatorPrivilege > SeSecurityPrivilege > SeSystemtimePrivilege > SeShutdownPrivilege > SeDebugPrivilege > SeSystemEnvironmentPrivilege > SeSystemProfilePrivilege > SeProfileSingleProcessPrivilege > SeIncreaseBasePriorityPrivilege > SeLoadDriverPrivilege > SeCreatePagefilePrivilege > SeIncreaseQuotaPrivilege > SeChangeNotifyPrivilege > SeUndockPrivilege > SeManageVolumePrivilege > SeImpersonatePrivilege > SeCreateGlobalPrivilege > SeEnableDelegationPrivilege > > > >> As i said, i can upload drivers without problem with w7, but > >> i can't see he printers, despite with firefox of my windows i > >> can see them... > > Mmm, windows7 firewall is the culprit. I deactivate it, > refresh, and i > can see my printers. > > So to sum it up, with the same configuration : > - Under w7, all work fine (upload and assign to printer). > - Under w10, i see the printer but unable to upload driver. > > I think it's a bug, maybe something to change in the .inf file. > > Tomorrow i will be at work and will try to install locally on a win10 > the driver to confirm it works with this os. And ask to the > administrator of another network that uses the same printer model to > give me the driver he uses if it isn't the same. > > I 'm looking forward your feedback of your test under w10 :-) > > Thanks Louis. > > -- > Manu > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >