Jason Jeremias
2002-Dec-12 18:56 UTC
[Samba] Samba/CUPS new printer not showing up, must restart
Someone please say it isn't so. I'm running Samba 2.2.7 on Linux, compiled from source. I use CUPS for my printing needs and I have samba setup to load printers. I'm having 2 problems: 1) if I add a new printer to CUPS (which in turn adds it to /etc/printcap) it doesn't show up in Samba. I've tried to -HUP the smbd process to get the printer to show up and that didn't work. Here are my relevent settings in smb.conf printcap name = lpstat load printers = yes printing = cups The only think I've found that works is restarting samba, this is a terrible solution for me because if I restart Samba, which is acting as my PDC. My Windows 2K Server, running SQL Server can no longer authenticate users and I have to restart that box to get it to work again. Is there another solution PLEASE!!! Having to restart samba to see a new printer just seems plain silly to me. 2) Even thought I have samba setup to print using this command: print command = /usr/bin/lpr -P %p -o raw %s -J'%J' -r It doesn't seem to be removing the jobs out of my /var/spool/samba directory when they are complete, any Ideas why? Comments, Suggestions, all help appreciated.
Bradley W. Langhorst
2002-Dec-12 19:15 UTC
[Samba] Samba/CUPS new printer not showing up, must restart
On Thu, 2002-12-12 at 14:01, Jason Jeremias wrote:> Someone please say it isn't so. I'm running Samba 2.2.7 on Linux, > compiled from source. I use CUPS for my printing needs and I have samba > setup to load printers. > > I'm having 2 problems: > > 1) if I add a new printer to CUPS (which in turn adds it to > /etc/printcap) it doesn't show up in Samba. I've tried to -HUP the smbd > process to get the printer to show up and that didn't work. > > Here are my relevent settings in smb.conf > > printcap name = lpstattry printcap name = /etc/printcap.cups instead> > 2) Even thought I have samba setup to print using this command: > > print command = /usr/bin/lpr -P %p -o raw %s -J'%J' -r > > It doesn't seem to be removing the jobs out of my /var/spool/samba > directory when they are complete, any Ideas why?If i remember correctly, when you use cups the print command is ignored - instead the files are sent to cups directly. you might try setting printing to bsd if you want to use lpr to submit jobs. brad> > Bradley W. Langhorst <brad@langhorst.com>