[Samba] How to "recover" the printer drivers?

Kurt Pfeifle k1pfeifle at gmx.net
Tue Jul 1 15:19:30 GMT 2003


Vizitiu, Ciprian CVizitiu at gbif.org

> Tue Jul 1 16:58:12 GMT 2003
> 
> Samba 2.2.8a-1, RH8.
> 
> ... So, I had to reinstall. Fortunately I had a back-up copy. I've installed
> everything and then went to back-up and brought back all the stuff from
> /etc/samba and /var/cache/samba and all /etc/cups and /etc/printcap*.
> Aparently samba is working corectly: All user/machine accounts are in place
> winbind OK... It's just that although I've restored the /home/printers
> folder in the previous state it looks like I've lost my printer drivers.
> Rpcclient enumdrivers shows empty hands although the driver files are in the
> corresponding folder! Printing directly to CUPS works without any problem
> and using the same config files it worked before the "move".
> 
> Logs for the machine trying to print looks like:
> 
> [2003/07/01 15:41:08, 0] printing/pcap.c:pcap_printername_ok(289)
>   Unable to open printcap file cups for read!
> [2003/07/01 15:41:08, 0] smbd/service.c:make_connection(252)
>   ws130 (191.x.y.130) couldn't find service
> ::{2227a280-3aea-1069-a2de-08002b30309d}
> [2003/07/01 15:42:00, 1] smbd/service.c:make_connection(636)
> 
> Of course printcap is there in /etc and it is 644. Did I forgot to copy
> something?

Yes, the "Registry"....

> Anybody with a hint?

Samba stores printer driver information (including DeviceMode etc.)
in its own equivalent to the Windows Registry, the "*.tdb" files.
These should also be restored to get everything up and running as
before....

Cheers,
Kurt




More information about the samba mailing list