Hello, I am trying to install automatic printer driver download and install. I am running Samba 3, as a PDC, on RedHat 7.3. It seems everything is setup correctly, although I cannot get the rpcclient to 'see' my printer. Please notice these two printers listed below ar the same (lp & HP2300). [root@mercury log]# rpcclient -U=root localhost Password: rpcclient $> enumprinters flags:[0x800000] name:[\\mercury\HP2300] description:[\\mercury\HP2300,,HP2300] comment:[HP2300] flags:[0x800000] name:[\\mercury\lp] description:[\\mercury\lp,,] comment:[] rpcclient $> enumdrivers [Windows NT x86] Printer Driver Info 1: Driver Name: [HP LaserJet 2300 Series PCL 6] [Windows NT x86] Printer Driver Info 1: Driver Name: [HP LaserJet 2300 Series PCL 6] rpcclient $> setdriver "lp" "HP LaserJet 2300 Series PCL 6" SetPrinter call failed! result was WERR_ACCESS_DENIED rpcclient $> setdriver "HP2300" "HP LaserJet 2300 Series PCL 6" SetPrinter call failed! result was WERR_ACCESS_DENIED rpcclient $> Snip from my smb.conf: [printers] comment = HP LaserJet path = /var/spool/samba printer admin = root guest ok = Yes printable = Yes printing = cups use client driver = Yes browseable = No [print$] comment = Printer Download path = /var/spool/samba/W32X86/3 valid users = maldrich, root admin users = maldrich, root write list = root read only = No guest ok = Yes [lp] path = /var/spool/samba printer admin = root read only = No guest ok = Yes printable = Yes printer name = lp use client driver = Yes oplocks = No share modes = Yes On the client side (Windows XP Pro), I can see both printers from Network Neighborhood, <Domain Name>, Printers & Faxes. Both of them are in 'Error' status. Does anyone have an idea why this operation is continuosly failing? Why do I get WERR_ACCESS_DENIED from SetPrinter? Thanks Mike And thanks to Kurt for getting me this far....
alaslavic@havertys.com
2004-Jan-14 21:06 UTC
[Samba] Samba PDC and Automatic Printer Install
In your smb.conf, you have the option "use client driver" set to "yes". When it is "yes", it will not allow you to set the driver. You need to delete the "use client driver" line, reload samba and it should work. Alex Laslavic Havertys Tech Services samba-bounces+alaslavic=havertys.com@lists.samba.org wrote on 01/14/2004 10:35:11 AM:> Hello, > I am trying to install automatic printer driver download and install. > I am running Samba 3, as a PDC, on RedHat 7.3. > > It seems everything is setup correctly, although I cannot get therpcclient> to 'see' my printer. > Please notice these two printers listed below ar the same (lp & HP2300). > > > [root@mercury log]# rpcclient -U=root localhost > Password: > > rpcclient $> enumprinters > flags:[0x800000] > name:[\\mercury\HP2300] > description:[\\mercury\HP2300,,HP2300] > comment:[HP2300] > > flags:[0x800000] > name:[\\mercury\lp] > description:[\\mercury\lp,,] > comment:[] > > rpcclient $> enumdrivers > > > > [Windows NT x86] > Printer Driver Info 1: > Driver Name: [HP LaserJet 2300 Series PCL 6] > > > [Windows NT x86] > Printer Driver Info 1: > Driver Name: [HP LaserJet 2300 Series PCL 6] > > > rpcclient $> setdriver "lp" "HP LaserJet 2300 Series PCL 6" > SetPrinter call failed! > result was WERR_ACCESS_DENIED > rpcclient $> setdriver "HP2300" "HP LaserJet 2300 Series PCL 6" > SetPrinter call failed! > result was WERR_ACCESS_DENIED > rpcclient $> > > > Snip from my smb.conf: > [printers] > comment = HP LaserJet > path = /var/spool/samba > printer admin = root > guest ok = Yes > printable = Yes > printing = cups > use client driver = Yes > browseable = No > > [print$] > comment = Printer Download > path = /var/spool/samba/W32X86/3 > valid users = maldrich, root > admin users = maldrich, root > write list = root > read only = No > guest ok = Yes > > [lp] > path = /var/spool/samba > printer admin = root > read only = No > guest ok = Yes > printable = Yes > printer name = lp > use client driver = Yes > oplocks = No > share modes = Yes > > On the client side (Windows XP Pro), I can see both printers from Network > Neighborhood, > <Domain Name>, Printers & Faxes. Both of them are in 'Error' status. > > Does anyone have an idea why this operation is continuosly failing? > > Why do I get WERR_ACCESS_DENIED from SetPrinter? > > Thanks > Mike > > > And thanks to Kurt for getting me this far.... > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
> Michael Aldrich maldrich at i-centrix.com > Wed Jan 14 15:35:11 GMT 2004 > > Hello, > I am trying to install automatic printer driver download and install. > I am running Samba 3, as a PDC, on RedHat 7.3. >Sorry, Mike, I'm currently not able to follow the mails on this list one by one. Just an occasional glance. So I haven't looked deeply into your problem either...> It seems everything is setup correctly,No. Not completely. You are trying to use a driver downloaded from the Samba server, yet you still have set smb.comf to "use client driver = Yes". Delete this line. Restart smbd. Then try again. [...]> rpcclient $> setdriver "lp" "HP LaserJet 2300 Series PCL 6" > SetPrinter call failed![....]> Snip from my smb.conf: > [printers][....]> printing = cups > use client driver = Yes^^^^^^^^^^^^^^^^^^^^^^^ [....]> [lp][....]> use client driver = Yes^^^^^^^^^^^^^^^^^^^^^^^> oplocks = No[....]> > Why do I get WERR_ACCESS_DENIED from SetPrinter? >What you try to do is not compatible with "use client driver = Yes"> Thanks > Mike > > > And thanks to Kurt for getting me this far.... >;-) Cheers, Kurt