Hi all, I'm new to this list, as to SAMBA, and I'm struggling with getting a printer to work as a shared printer in a Windows network with a redhat 9 server. The printer is a HP 4550 Color LaserJet, installed with CUPS to the server, via JetDirect (port 9100). It prints testpages fine from the Linux-server. It was installed with the install-printer-utility in RedHat9. I have then shared the printer via samba, to be able to access it from the Windows machines (2000, XP). It shows up fine, and accept print jobs, but nothing happens after the jobs has been processed, and no errors are being generated. I would be grateful for any help. /Bo Mellberg cupsd.conf: LogLevel info MaxLogSize 0 Printcap /etc/printcap PrintcapFormat BSD RequestRoot /var/spool/cups TempDir /tmp AuthType None <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 </Location> <Location /printers/hp4550> Order Deny,Allow Deny From All Allow From 127.0.0.1 AuthType None Allow from All </Location> <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 </Location> Browsing On BrowseProtocols cups BrowseOrder Deny,Allow BrowseAllow from @LOCAL BrowseAddress 255.255.255.255 Listen *:631 smb.conf: [global] workgroup = jolife server string = samba server hosts allow = 192.168.1. 127. printing = cups printcap = cups load printers = yes ; guest account = pcguest log file = /var/log/samba/%m.log max log size = 0 ; password server = <NT-Server-Name> ; password level = 8 ; username level = 8 smb passwd file = /etc/samba/smbpasswd ; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* pam password change = yes ; username map = /etc/samba/smbusers ; include = /etc/samba/smb.conf.%m obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ; remote browse sync = 192.168.3.25 192.168.5.255 ; remote announce = 192.168.1.255 192.168.2.44 ; local master = no ; os level = 33 domain master = yes ; preferred master = yes ; domain logons = yes ; logon script = %m.bat ; logon script = %U.bat ; logon path = \\%L\Profiles\%U ; wins support = yes ; wins server = w.x.y.z ; wins proxy = yes username map = /etc/samba/smbusers encrypt passwords = yes guest ok = yes dns proxy = no ; preserve case = no ; short preserve case = no ; default case = lower ; case sensitive = no [homes] comment = Home Directories browseable = no writeable = yes valid users = %S create mode = 0664 directory mode = 0775 ; map to guest = bad user ; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes ; writable = no ; share modes = no ;[Profiles] ; path = /usr/local/samba/profiles ; browseable = no ; guest ok = yes [printers] comment = All Printers path = /var/spool/samba public = yes guest ok = yes printable = yes printer admin = root, @ntadmins ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes ;[public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = @staff ;[fredsprn] ; comment = Fred's Printer ; valid users = fred ; path = /home/fred ; printer = freds_printer ; public = no ; writable = no ; printable = yes ;[fredsdir] ; comment = Fred's Service ; path = /usr/somewhere/private ; valid users = fred ; public = no ; writable = yes ; printable = no ;[pchome] ; comment = PC Directories ; path = /usr/local/pc/%m ; public = no ; writable = yes ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes ; writable = yes ; printable = no ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 [jolife shared] comment = Shared Jolife documents path = /home/jolife/ writeable = yes guest ok = yes [bosse] comment = Bosses documents path = /home/bosse valid users = bosse writeable = yes [lennart] comment = Lennarts documents path = /home/lennart writeable = yes valid users = lennart [martin] comment = Martins documents path = /home/martin writeable = yes valid users = martin [peter] comment = Peters documents path = /home/peter writeable = yes valid users = peter [semmy] comment = Semmys documents path = /home/semmy writeable = yes valid users = semmy [steven] comment = Stevens documents path = /home/steven writeable = yes valid users = steven cups error_log: E [23/Jun/2003:09:51:31 +0200] Scheduler shutting down due to SIGTERM. E [23/Jun/2003:09:51:31 +0200] Unknown directive AuthType on line 729. I [23/Jun/2003:09:51:31 +0200] Sending browsing info to ffffffff:631 I [23/Jun/2003:09:51:31 +0200] Listening to 0:631 I [23/Jun/2003:09:51:31 +0200] Configured for up to 100 clients. I [23/Jun/2003:09:51:31 +0200] Allowing up to 10 client connections per host. I [23/Jun/2003:09:51:31 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 13 PPDs... I [23/Jun/2003:09:51:31 +0200] LoadPPDs: No new or changed PPDs... I [23/Jun/2003:09:51:47 +0200] Job 30 queued on 'hp4550' by 'bosse'. I [23/Jun/2003:09:51:47 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 32466) \ for job 30. I [23/Jun/2003:09:51:47 +0200] Started backend /usr/lib/cups/backend/socket (PID 32467) fo\ r job 30. I [23/Jun/2003:10:02:06 +0200] Job 31 queued on 'hp4550' by 'bosse'. I [23/Jun/2003:10:02:06 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 335) fo\ r job 31. I [23/Jun/2003:10:02:06 +0200] Started backend /usr/lib/cups/backend/socket (PID 336) for \ job 31.
> [Samba] Trouble with CUPS/SAMBA > Bo Mellberg bo.mellberg at jolife.se > Mon Jun 23 10:34:12 GMT 2003 > > > Hi all, > > I'm new to this list, as to SAMBA, and I'm > struggling with getting a printer to work > as a shared printer in a Windows network > with a redhat 9 server. > > The printer is a HP 4550 Color LaserJet, installed > with CUPS to the server, via JetDirect (port 9100). > It prints testpages fine from the Linux-server. It > was installed with the install-printer-utility in > RedHat9. > > I have then shared the printer via samba, to be > able to access it from the Windows machines (2000, XP). > It shows up fine, and accept print jobs, but nothing > happens after the jobs has been processed, and no > errors are being generated. >Please refer to this document (PDF or HTML) http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ and see if it answers your questions.> I would be grateful for any help. > > /Bo Mellberg >Cheers, Kurt
Bo Mellberg bo.mellberg at jolife.se> Mon Jun 23 10:34:12 GMT 2003 > > > Hi all,[....]> I have then shared the printer via samba, to be > able to access it from the Windows machines (2000, XP). > It shows up fine, and accept print jobs,What kind of driver are you using on the Windows side? Are you aware of the various methods to install drivers on Windows clients to be used with Samba/CUPS printing?> but nothing > happens after the jobs has been processed, and no > errors are being generated. > > I would be grateful for any help.[....]> [printers] > comment = All Printers > path = /var/spool/sambaDoes this directory exist?> public = yes > guest ok = yes > printable = yes > printer admin = root, @ntadmins[....]> cups error_log: > > E [23/Jun/2003:09:51:31 +0200] Scheduler shutting down due to SIGTERM. > E [23/Jun/2003:09:51:31 +0200] Unknown directive AuthType on line 729.What is written into "line 729" of cupsd.conf??> I [23/Jun/2003:09:51:31 +0200] Sending browsing info to ffffffff:631 > I [23/Jun/2003:09:51:31 +0200] Listening to 0:631 > I [23/Jun/2003:09:51:31 +0200] Configured for up to 100 clients. > I [23/Jun/2003:09:51:31 +0200] Allowing up to 10 client connections per host. > I [23/Jun/2003:09:51:31 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 13 PPDs... > I [23/Jun/2003:09:51:31 +0200] LoadPPDs: No new or changed PPDs... > I [23/Jun/2003:09:51:47 +0200] Job 30 queued on 'hp4550' by 'bosse'. > I [23/Jun/2003:09:51:47 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 32466) for job 30.You should never use cupsomatic for a real PostScript printer. Who adviced you to do so? The new Samba Printing HOWTO is very specific about real PostScript printers: _Use_ _the_ _vendor_ _provided_ _PPDs_ !!> I [23/Jun/2003:09:51:47 +0200] Started backend /usr/lib/cups/backend/socket (PID 32467) for job 30. > I [23/Jun/2003:10:02:06 +0200] Job 31 queued on 'hp4550' by 'bosse'. > I [23/Jun/2003:10:02:06 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 335) for job 31. > I [23/Jun/2003:10:02:06 +0200] Started backend /usr/lib/cups/backend/socket (PID 336) for job 31. >If you are still having trouble, use "LogLevel debug". Some advice about this is also at http://www.cups.org/cups-help.html Cheers, Kurt
On Mon, 2003-06-23 at 04:34, Bo Mellberg wrote:> ;[fredsprn] > ; comment = Fred's Printer > ; valid users = fred > ; path = /home/fred > ; printer = freds_printer > ; public = no > ; writable = no > ; printable = yesyou should'nt need this ... the printers will automatically get loaded from the printcap or cups api...> ;[fredsdir] > ; comment = Fred's Service > ; path = /usr/somewhere/private > ; valid users = fred > ; public = no > ; writable = yes > ; printable = no > ;[pchome] > ; comment = PC Directories > ; path = /usr/local/pc/%m > ; public = no > ; writable = yes > ;[public] > ; path = /usr/somewhere/else/public > ; public = yes > ; only guest = yes > ; writable = yes > ; printable = no > ;[myshare] > ; comment = Mary's and Fred's stuff > ; path = /usr/somewhere/shared > ; valid users = mary fred > ; public = no > ; writable = yes > ; printable = no > ; create mask = 0765 > [jolife shared] > comment = Shared Jolife documents > path = /home/jolife/ > writeable = yes > guest ok = yesdo you really want all these? the homes share does it automatically...> [bosse] > [lennart] > [martin] > [peter] > [semmy] > [steven]> cups error_log: > > E [23/Jun/2003:09:51:31 +0200] Scheduler shutting down due to SIGTERM. > E [23/Jun/2003:09:51:31 +0200] Unknown directive AuthType on line 729.your config file for cups is bad at line 729...> [23/Jun/2003:09:51:47 +0200] Job 30 queued on 'hp4550' by 'bosse'. > I [23/Jun/2003:09:51:47 +0200] Started filter > /usr/lib/cups/filter/cupsomatic (PID 32466) \ > for job 30. > I [23/Jun/2003:09:51:47 +0200] Started backend /usr/lib/cups/backend/socket > (PID 32467) fo\ > r job 30. > I [23/Jun/2003:10:02:06 +0200] Job 31 queued on 'hp4550' by 'bosse'. > I [23/Jun/2003:10:02:06 +0200] Started filter > /usr/lib/cups/filter/cupsomatic (PID 335) fo\ > r job 31. > I [23/Jun/2003:10:02:06 +0200] Started backend /usr/lib/cups/backend/socket > (PID 336) for \ > job 31.these lines look like your job has made it to cups and is failing in there... so you don't need to mess with your samba configuration. if this doesn't work - take it to the cups lists... one problem you may have is that the windows pcs are sending jobs that are ready for printing with no ripping... you could try setting up your printer in cups as a raw printer instead of pcl5 or whatever you set it up as. best wishes! brad -- Bradley W. Langhorst <brad@langhorst.com>
Bradley W. Langhorst brad at langhorst.com> Mon Jun 23 21:34:26 GMT 2003 > > > On Mon, 2003-06-23 at 04:34, Bo Mellberg wrote: > >> ;[fredsprn] >> ; comment = Fred's Printer >> ; valid users = fred >> ; path = /home/fred >> ; printer = freds_printer >> ; public = no >> ; writable = no >> ; printable = yes > you should'nt need this ... > the printers will automatically get loaded from the printcap > or cups api...But he had all this commented out....>> ;[fredsdir] >> ; comment = Fred's Service >> ; path = /usr/somewhere/private >> ; valid users = fred >> ; public = no >> ; writable = yes >> ; printable = no >> ;[pchome] >> ; comment = PC Directories >> ; path = /usr/local/pc/%m >> ; public = no >> ; writable = yes >> ;[public] >> ; path = /usr/somewhere/else/public >> ; public = yes >> ; only guest = yes >> ; writable = yes >> ; printable = no >> ;[myshare] >> ; comment = Mary's and Fred's stuff >> ; path = /usr/somewhere/shared >> ; valid users = mary fred >> ; public = no >> ; writable = yes >> ; printable = no >> ; create mask = 0765 >> [jolife shared] >> comment = Shared Jolife documents >> path = /home/jolife/ >> writeable = yes >> guest ok = yes > do you really want all these? > the homes share does it automatically...This is also commented out....>> [bosse] >> [lennart] >> [martin] >> [peter] >> [semmy] >> [steven] > >> cups error_log: >>He should set "LogLevel debug" in cupsd.conf....>> E [23/Jun/2003:09:51:31 +0200] Scheduler shutting down due to SIGTERM. >> E [23/Jun/2003:09:51:31 +0200] Unknown directive AuthType on line 729.your config file for cups is bad at line 729... >> I [23/Jun/2003:09:51:47 +0200] Job 30 queued on 'hp4550' by 'bosse'. >> I [23/Jun/2003:09:51:47 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 32466) for job 30. >> I [23/Jun/2003:09:51:47 +0200] Started backend /usr/lib/cups/backend/socket (PID 32467) for job 30. >> I [23/Jun/2003:10:02:06 +0200] Job 31 queued on 'hp4550' by 'bosse'. >> I [23/Jun/2003:10:02:06 +0200] Started filter /usr/lib/cups/filter/cupsomatic (PID 335) for job 31. >> I [23/Jun/2003:10:02:06 +0200] Started backend /usr/lib/cups/backend/socket (PID 336) for job 31.> these lines look like your job has made it to cups and is failing in > there...This is likely, but not conclusive. Is it really a job originating from a Windows client? Only "LogLevel debug" would show... Also, "LogLevel debug" would show if and why "job 30" failed. (There is not yet an error in this part of the log. It would appear on the next few lines, but these were not provided....)> so you don't need to mess with your samba configuration. > > if this doesn't work - take it to the cups lists... > > one problem you may have is that the windows pcs are sending jobs that > are ready for printing with no ripping... > you could try setting up your printer in cups as a raw printer instead > of pcl5 or whatever you set it up as. > > best wishes! >Cheers, Kurt