[Samba] How to delte a printer

2008-11-14 Thread Marc Muehlfeld

Hello,

how can I delete a printer and it's driver completely out of samba?

1. Removing the entry out of smb.conf and reload samba.
2. Remove the driver over the windows serversettings dialog.

But then there is a printing/printer-name.tdb left in the lock directory. 
Can I just delete this file? And how can I remove the corresponding entries 
out of ntprinters.tdb.


And is there anything more to do?

Regards
Marc
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] How to delte a printer

2008-11-14 Thread Steve Rippl
[from our internal documentation...] 

  1. Remove the printer via the web interface in CUPS:

 1. Manage Printers

 I. Delete Printer

 2. Stop the CUPS daemon with /etc/init.d/cupsys stop (if debian)

 3. Run the rpcclient command to manually reverse the integration
process performed by cupsaddsmb

 1. rpcclient localhost -U username -c ‘deldriverex
printername’ Windows NT x86

 2. If you wish to disassociate the driver for all
architectures, and you do, then specifying the
architecture via the Windows NT x86 statement is not
necessary.

 4. Start the CUPS daemon with /etc/init.d/cupsys start

 5. Delete the PPD file created by cupsaddsmb for the printer you
have removed from the [print$] share folder to avoid
accumulation.


On Fri, 2008-11-14 at 11:50 +0100, Marc Muehlfeld wrote:
 Hello,
 
 how can I delete a printer and it's driver completely out of samba?
 
 1. Removing the entry out of smb.conf and reload samba.
 2. Remove the driver over the windows serversettings dialog.
 
 But then there is a printing/printer-name.tdb left in the lock directory. 
 Can I just delete this file? And how can I remove the corresponding entries 
 out of ntprinters.tdb.
 
 And is there anything more to do?
 
 Regards
 Marc
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba