[Samba] How do I remove printer drivers from print$

Gerald Carter jerry at samba.org
Mon Feb 25 07:06:04 GMT 2002


On Fri, 22 Feb 2002, Ben Tullis wrote:

> I am running 2.2.2-5 for Debian. Here is my smb.conf file, with a few of the
> shares stripped out for brevity.
> 
> I have just added "show add printer wizard = yes" and executed
> /etc/init.d/samba reload. I don't think anything has changed so far, but at
> the end of the day I will do a restart and see what happens then.
> 
> Many thanks for the support.  I am hoping to have this fixed by the next
> time someone on 9x wants to print in colour!
> 
> Interestingly, testparm outputs the old definition of:
> printer driver file = /etc/samba/printers.def

This is an older parameter marked for removal in 3.0.

> as well as my entries.  Since this file doesn't exist, I am at a loss as to
> where the information about the drivers installed is kept.  If I remove the
> files from print$, the server still believes it has those files.

driver files are stored in [print$].  Driver (and printer) information is 
stored in $(lockdir)/nt*tdb.  You can remvoe drivers from the Samba 
server just like you do from NT/2k.  Goto the printers folder
from a Win2k client while browsing the Samba server and select 
file->server properties.  Now goto the driver tab and remove
the desired driver.

Of course, you have to be a printer admin (or root) for this to work.







cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list