Ok, If it does not matter, tell me which printer driver version are you using. V3 or V4 that is one you should know, because if its a "V4" driver, then its not supported by samba. And samba doe only support non-packaged aware printer drivers. ( see wiki ) Are you using spoolss or spoolssd ?> Yes, I know WHERE it happens but not WHY... I need to know why so I can > do something about it.Then provide the asked information, then i can help, without i can not. And i hoop you did read : https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_Downloads_for_Windows_Clients Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Åke Holmlund via > samba > Verzonden: woensdag 22 maart 2017 13:49 > Aan: L.P.H. van Belle via samba > Onderwerp: Re: [Samba] access DENIED for non-printserver bits > > Hi, > > > Can you tell me the brand and driver of the printer your trying , that > helps. ( or send me a > > copy/link of the driver your installing ) > > That does not matter. When I try to add a driver, I get an "Access denied" > message befor the wizard starts. > > > I did find the error in the following source code of samba. > > source3/rpc_server/srv_spoolss_nt.c > > > > but i cant help with that code much to complex for me, but at least you > know is a "by samba" > > generated error. > > Yes, I know WHERE it happens but not WHY... I need to know why so I can > do something about it. > > > If your able to upgrade to 4.6 thats what you really want, since there > has been lots of > > improvements in printer drivers support for win10. > > I'm working on that but I have the same problem from Win 7, > Win server 2008 and Win 10 so it's not a specific Win 10 problem.. > > Regards, > Åke > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Hi,> If it does not matter, tell me which printer driver version are you using.It's a driver for a Ricoh MFP but that does not matter because the install wizard never even starts (so I never even get to point to a driver). The "Access denied" happens before the installation would have started.> V3 or V4 that is one you should know, because if its a "V4" driver, > then its not supported by samba. > And samba doe only support non-packaged aware printer drivers. ( see wiki ) > > Are you using spoolss or spoolssd ?spoolss>> Yes, I know WHERE it happens but not WHY... I need to know why so I can >> do something about it. > Then provide the asked information, then i can help, without i can not. > > And i hoop you did read : > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server > > https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_Downloads_for_Windows_Client > sYes, I have seen those. This has been working before (Samba 3.x). The problems have started with Samba 4.x. Regards, Åke
Ok,> The "Access denied" happens before the installation would> have started.Ok so a mis configuration somewere. Since you not willing to share the smb.conf i?ll show you my part. this works as win xp upto win 10 32/64bit. ( tested with samba 4.4.x 4.5.x 4.6.x on debian jessie with cups and point and print setup.) If anyone is questioning the ?acl_xattr:ignore system acl = yes? lines. The why i use that, is because these are for me windows only setups. If you setup is different you need to hunt down your rights problems. Like : Share rights File/folder rights SePrivilege rights My smb.conf printer part. ##### PRINT SERVER PART ####### ## Enabling spoolssd rpc_server:spoolss = external rpc_daemon:spoolssd = fork # announce x64 by default. spoolss:architecture = Windows x64 spoolssd:prefork_min_children = 5 spoolssd:prefork_max_children = 25 spoolssd:prefork_spawn_rate = spoolssd:prefork_max_allowed_clients = 100 spoolssd:prefork_child_min_life = 60 load printers = yes # samba prints and snmp.. # Look here : https://wiki.samba.org/index.php/Configure_network_printer_ports enumports command = /etc/samba/bin/show-ports.sh This is my share setup. [print$] comment = Printer Drivers path = /home/samba/printing/drivers acl_xattr:ignore system acl = yes browseable = yes writable = yes guest ok = no [printers] comment = All Printers path = /home/samba/printing/spool acl_xattr:ignore system acl = yes browseable = yes printable = yes printing = CUPS after setting this, go here : check https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server#Granting_the_SePrintOperatorPrivilege_Privilege then https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_Downloads_for_Windows_Clients goto : Setting up the [print$] Share Using Windows ACLs: Apply that part. Try again. Or give more info, without it, its impossible to guess what the problem is. But above must give you some pointers to work with. Greetz, Louis> -----Oorspronkelijk bericht-----> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Åke Holmlund via> samba> Verzonden: donderdag 23 maart 2017 12:41> Aan: L.P.H. van Belle via samba> Onderwerp: Re: [Samba] access DENIED for non-printserver bits>> Hi,>> > If it does not matter, tell me which printer driver version are you> using.>> It's a driver for a Ricoh MFP but that does not matter because the> install wizard never even starts (so I never even get to point to> a driver). The "Access denied" happens before the installation would> have started.>> > V3 or V4 that is one you should know, because if its a "V4" driver,> > then its not supported by samba.> > And samba doe only support non-packaged aware printer drivers. ( see> wiki )> >> > Are you using spoolss or spoolssd ?>> spoolss>> >> Yes, I know WHERE it happens but not WHY... I need to know why so I can> >> do something about it.> > Then provide the asked information, then i can help, without i can not.> >> > And i hoop you did read :> > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server> >> >> https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_Downl> oads_for_Windows_Client> > s>> Yes, I have seen those. This has been working before (Samba 3.x). The> problems have started with Samba 4.x.>> Regards,> Åke>> --> To unsubscribe from this list go to the following URL and read the> instructions: https://lists.samba.org/mailman/options/samba
Hi,>> The "Access denied" happens before the installation would > >> have started. > > Ok so a mis configuration somewere.Probably. Question is where?> ( tested with samba 4.4.x 4.5.x 4.6.x on debian jessie with cups and point and print setup.)I'm now running 4.6.x on Solaris with SYSV printing (with some modifications).> Like : > > Share rightsLooks ok to me. If I connect to the share I have full access (read/write)> File/folder rightsOn the Solaris side the whole directory structure, for the print$ share, is owned byt the domain admin user.> SePrivilege rightsLooks like this (changed usernames and IP-numbers): user at server% net rpc rights list -U "MY-DOM\domainadmin" Enter MY-DOM\domainadmin's password: SeMachineAccountPrivilege Add machines to domain SeTakeOwnershipPrivilege Take ownership of files or other objects SeBackupPrivilege Back up files and directories SeRestorePrivilege Restore files and directories SeRemoteShutdownPrivilege Force shutdown from a remote system SePrintOperatorPrivilege Manage printers SeAddUsersPrivilege Add users and groups to the domain SeDiskOperatorPrivilege Manage disk shares SeSecurityPrivilege System security My smb.conf printer parts: [global] printing = sysv printcap name = /var/conf/Samba/printcap # printer admin = domainadmin [print$] comment = Skrivardrivrutiner path = /var/conf/Samba/print browseable = yes read only = no # tested different combinations yes/no # write list = domainadmin # with/without write list acl_xattr:ignore system acl = yes # made no difference [printers] comment = Skrivare allow hosts = 1.2.3.4/255.255.255.0 path = /var/spool/Samba printable = yes read only = yes browsable = no acl_xattr:ignore system acl = yes # made no difference lpq command = /usr/bin/lpstat %p print command = /opt/sbin/smbprint %p %s %J> check > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server#Granting_the_SePrintOperatorP > rivilege_PrivilegeDone that (see above)> then > https://wiki.samba.org/index.php/Setting_up_Automatic_Printer_Driver_Downloads_for_Windows_Client > s > > > > goto : Setting up the [print$] Share > > Using Windows ACLs: > > Apply that part.I'm unable to check this right now. Since I have updated W10 to 1607 and Samba from 4.4.x to 4.6.x I have run into some other problems. Time has run out today so I will have to take a look at that on monday. Regards, Åke