I've an odd problem with samba, running on SCO3.2.4.1. (sys.V) Most PC's (runing win95 or NT) seem to print fine. A few however will print the first print job OK, but will not print again until either the samba deamon is restarted or the PC is reset, or if a new printer is added on the PC that points to the same place. The connection is made, and the print job is spooled by samba (into /tmp) but the lp service doesn't seem to see it. Restarting the SMB daemon doesn't appear to forward these 'lost' print jobs. The printer is also set up on another unix box, which accepts smb requests and forwards them to the SCO3.2.4.1 box via lp. If the same user prints to this unix box (running SCO 3.2.4.2) then it comes out fine, AND _some_ of the previous jobs come out that had been sent to the other unix box. Is this a problem that you have seen before ? It looks like samba isn't talking to the lp system on the 3.2.4.1 box properly; I'd be really grateful for any ideas, as I'm at a bit of a loss ! Rgds, Antony King (ant@tis.misys.co.uk) -- ===================== Ext : 247 ================== _o Network Support for TIS Software O>O ===================================================
Dear Sir Thanks for reading this. Hope you will help me. I am using samba 1.9.17p2 on SunSparc-20 running solaris2.5.1 for printing and file sharing with PC-network. File sharing is working fine but I want to print to a WfWg printer from Solaris. So I have used script smbprint.sysv and try to print. But I am facing following problems: 1- I can only do command line printing e.g lp <file name> 2- I can't print from Xwindows and following message appears on screen: " NO print filter defined..." 3- There is no word wraping and long lines are truncated. 4- How can I define filter according to my needs and how can i attach it with my samba printer? 4- I have installed TCP32b on WFWG print server. I am trying to print from unix to WFWG from last couple of weeks but could not succeeded. Now i become furstrate and need your help to overcome this problem. Waiting to hear from you. Thanks Kunwar Asif Masood CresSoft ---------------------------------------------------------------------- - Following is the script which I am using. !/bin/sh shift;shift;shift;shift;shift # now the argument list is just the files to print server=Ps1 service="HP LASERJET" password="" CRLFSTR="\033&k2G" FFEED="\014" (# NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. echo translate echo "print -" echo $CRLFSTR cat $* echo $FFEED ) | /usr/local/samba/bin/smbclient "\\\\$server\\$service" $password -N -P -I a.b.c.d > /dev/null exit $? ---------------------------------------------------------------- My etc/printcap file lp:\ :cm=HP LASERJET on Print server in basement:\ :lp=/dev/null:\ :sd=/var/spool/lpd/lp:\ :af=/var/spool/lpd/lp/acct:\ :mx=0:\ :if=/usr/local/samba/smbprint.sysv
Just one more thing on this topic: someone mentionned using the HP JetDirect. New versions feature a variable "banner" (editable via telnet) that does precisely that, include a banner or not for every print job. Eg. here I disabled it on an HP LaserJet + HP JetDirect (firmware A.05.05), and with one single queue we print correctly from both Unix and Windows! YMMV. I also discovered the one-connection limit of the JetDirect. :( ** /etc/printcap ** lj|lj4m|hp4m+|HP LaserJet 4M Plus PostScript:\ :lp=:rm=lj4m:\ :sd=/var/spool/lpd-lj:\ :lf=/var/log/lpd-errs: lj4m is a DNS name for the printer. ** /etc/smb.conf ** [global] printing = bsd print command = lpr -rs -P%p %s [printers] printable = yes public = yes path = /var/spool/samba -- -- Renaud Waldura -- MIS, Ligos Technology ----- -- rwaldura@ligos.com -- http://www.ligos.com -- -- (415) 437-6137 x102 -- Fax: (415) 437-6139 -- --
Is it possible to use Samba to print from a Unix machine to a printer connected to a Win 95 machine over a LAN. The printer is the Windows only HP Deskjet 820 Cxi. Thanx Martin Frakes m_frakes@hotmail.com ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
Hi folks, I got a problem with this error message: SMBtconX failed. ERRSRV - ERRinvdevice (Invalid device - printer request made to non printer connection or non printer request made to printer connection) Perhaps you are using the wrong sharename, username or password? Some servers insist that these be in uppercase What does this message exactly say? Problem is: I am in an university network domain running under OpenVMS VAX V7.1 and I want to print to a printer from DIGITAL, LN17ps, running under DECprint Supervisor V1.5! This worked until two weeks ago!!!!!! It worked fine. But now this error message comes up. Well: - Does anybody has an Idea what thias message means? - Does anybody have any suggestion what to do? - Does anybody know where I could get help (newsgroups, companies, manuals, ...) ? - Does this error could have something to do with an upgrade to OpenVMS VAX V7.2? Thank you for any suggestion!!! Philipp
Greetings again, I'm trying to set up Samba for printing following the O'Reilly Samba book and RedHat's own installation book. I've set up 2 network printers on HP JetDirect servers, and can print to either of them from the Printtool in Gnome perfectly well. If I print from the command line I can print to either, but if I printed from a Windows 95 client, despite using either printer, I could only print to lj5mp. Now I can't print to either and I don't know what I've done. The shares are as follows: [hp4050tn] comment = HP 4050TN printable = yes print command = /usr/bin/lpr -r %s printer = lp0 printing = BSD path = /usr/spool/samba/lp0 browsable = yes public = yes guest ok = yes [lj5mp] comment = HP LaserJet 5MP printable = yes print command = /usr/bin/lpr -r %s printer = lp path = /usr/spool/samba/lp printing = BSD guest ok = yes Guest is set to nobody. What should the printer spool permissions and ownweships be? It was all working so well ..... Matt Halliday Fesa UK Limited Unless otherwise agreed expressley in writing by Fesa UK Limited, this communication should be treated as confidential and the information contained therein may not be used or disclosed except for the purpose for which it was sent. If you are not the intended recipient of this communication please contact the sender immediately. WARNING: Computer viruses can be transmitted by e-mail. The recipient should check this e-mail and any attachments for the presence of viruses. Fesa UK Limited accepts no liability for any damage caused by any virus transmitted by this e-mail. This e-mail and and attachments may not be copied and forwarded without the written consent of Fesa UK Limited . In the event of copying or forwarding, the recipient will be required to idemnify Fesa UK Limited against any claim for loss or damage caused by any virus or otherwise.
Samba Group, I am interested in using samba to print from Linux to printers on windows machines on a LAN. I read sections of chapter 7 in O'Reilly's "Using Samba" book. Now I've got some questions. Samba's running on RedHat 6.1. It's on a LAN with the printer attached to an NT-4.0 server. Do I use BSD style printing or Sys-V style printing? How do I use SWAT from the Linux machine that samba is on? Any other suggestions for making this work? Wayne
I set my printers up to bypass my NT domain and print directly to the printer (using CUPS www.cups.org). Otherwise, your spooling documents to your Linux box, then to the NT box, followed by the printer. This also eliminates the need to deal with NT Domain authentication. I like cups because it allows you to spool to HP's Jetdirect interface directly (on port 9100) instead of their flaky lpd port. Print a test page on the printer to get the IP address of the printer. To use SWAT, go to http://localhost:901 -----Original Message----- From: Wayne [mailto:wayne99@att.net] Sent: Saturday, December 09, 2000 8:24 AM To: samba list Subject: samba printing Samba Group, I am interested in using samba to print from Linux to printers on windows machines on a LAN. I read sections of chapter 7 in O'Reilly's "Using Samba" book. Now I've got some questions. Samba's running on RedHat 6.1. It's on a LAN with the printer attached to an NT-4.0 server. Do I use BSD style printing or Sys-V style printing? How do I use SWAT from the Linux machine that samba is on? Any other suggestions for making this work? Wayne
I have a deskjet 895Cse printer that works perfectly through samba and lpr. Currently the printer prints jobs from win2k and win95 machines. The problem is that when users try to print large documents such as omre than 20 pages the printer stops printing and just hangs there. I have to restart lpd and restart the printer and resend the job. The samba logs just say this [2001/04/21 04:35:10, 1] smbd/service.c:close_cnum(583) desktop (192.168.1.2) closed connection to service DeskJet which i suppose means that the win2k machine ends the connection before the print job is sent or what? SO how can i fix this from happening? Heres my smb.conf part of the printer share [DeskJet] printable = yes print command = /usr/bin/lpr -r -h %s printer = lp printing = BSD read only = yes guest ok = no invalid users = root bin daemon nobody named sys tty disk mem kmem users Also i was wondering if there is a way to notify the user that the print job is finished as it is done with the NT spoolers. Can that be done with samba? Thank you Michael A Theodoulou
Hi, I am desperate for some help with samba printing. I would truly appreciate any light you could shed into this turmoil. I have samba running on RH 7.1. I have configured my printers with the printtool with their respective drivers. I installed the samba printers on my NT workstations. When a user sends a print job to a printer, the job does not show in the printer icon on the NT WKS. It can be seen on the Linux box with the lpq -P devicename command. If I configure a port on the printer properties on NT than I can see the queue in the NT printer icon but not on Linux. Is is possible to see the queue in both places? We cannot configure a port for each user because we want the admin group to control the print jobs. Thanks you so much in advance. Dominique
Yes, but I am using windows 98. Is DEFAULT ACCEPT the only line in lpd.perms? On Fri, Dec 14, 2001 at 10:02:18AM -0800, dominique@linuxwon.org wrote:> Joel, > > Thanks so much for the response. I have made change per you instructions, the DEFAULT is set to ACCEPT in lpd.perms. I still cannot see the queue on NT. I looked at the lpd.conf and lpd.perms, there are probably some settings that need to be changed but don't know which. Is your queue showing on windows and Linux? > > Thanks. > > On Thu, 13 December 2001, Joel Hammer wrote: > > > > > I take it things are printing ok. > > As I recall, RH 7.1 uses lprng, yes? Samba may not specify lprng as the > > default. Better check that out. > > Just taking some wild shots here: > > There may be a problem with the command that samba is using for showing the > > queue. Or, maybe something odd in lpd.perms. > > I would try making lpd.perms have only this one line: > > DEFAULT ACCEPT > > Bad security, but good for troubleshooting. > > Here is the setup I have for a printer hanging off a linux box with samba: > > path = /tmp > > create mask = 0700 > > guest ok = Yes > > hosts allow = 192.168. > > printable = Yes > > printing = lprng > > print command = echo %J %p %s >> /tmp/junkJ;\ > > a="`echo '%J' | sed "s/^.*- //"`" ;\ > > echo This is truncated $a >> /tmp/junkJ;\ > > /usr/bin/lpr -Plp -J"$a" %s;\ > > rm %s > > lpq command = /usr/bin/lpq -Plp > > lprm command = /usr/bin/lprm -Plp %j:> > lppause command = /usr/sbin/lpc hold -Plp %j> > lpresume command = /usr/sbin/lpc release -Plp %j > > The fancy print command allows the real file name to appear in the queueand > > also removes the annoying Microsoft prefix with Word documents. > > Joel > > > > > > On Thu, Dec 13, 2001 at 01:24:01PM -0800, dominique@linuxwon.org wrote: > > > Hi, > > > > > > I am desperate for some help with samba printing. I would truly appreciate any light > > > you could shed into this turmoil. > > > I have samba running on RH 7.1. I have configured my printers with the printtool > > > with their respective drivers. > > > I installed the samba printers on my NT workstations. When a user sends a print > > > job to a printer, the job does not show in the printer icon on the NT WKS. It can > > > be seen on the Linux box with the lpq -P devicename command. If I configure a port > > > on the printer properties on NT than I can see the queue in the NT printer icon but > > > not on Linux. Is is possible to see the queue in both places? We cannot configure > > > a port for each user because we want the admin group to control the print jobs. > > > > > > Thanks you so much in advance. > > > > > > Dominique > > > > > > > > > > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: http://lists.samba.org/mailman/listinfo/samba >
I would remove all lines except the last DEFAULT ACCEPT line. Joel
Hi- I want to be able to use a linux server with Samba for all my users to spool their print jobs too. Right now we have a Windows NT Server that shares all of our printers, most of the are connected through JetDirect cards and other print server devices. Then I share those printers out to each of the users. How would I accomplish this with Samba and CUPS? Thanks!! _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
I sent the following yesterday with no response. Somebody out there must know how to cope with this error message. Hope the right person reads this. I have Samba running on the linuxbox serving WinME on the other boxes. My printer is an hp deskjet hooked to a WinME machine. I used gnome>System settings>Printing to set up printing from the linuxbox to the WinME box. Everything went smooth during setup with the printer being recognized properly as 'Networked Windows (SMB)' When I try a test print I get the error 'Get_localhost: 'Localhost' IP address not available'. When I try to print a document it appears to cache, go away and never come back. Anybody have any suggestions? -- Bob McLaughlin <bobm142@attbi.com>
I think the command is print filename. The file should be formatted for your printer. man smbclient is a must read. Joel On Tue, Apr 29, 2003 at 10:41:53AM -0500, Bob McLaughlin wrote:> Thanks Joel. > I did the man smbclient bit after our last e-mail. I get a smb: /> > prompt on the command line but I don't know the syntax to print from the > command line. The Gnome printer setup problem remains. > bob > > > On Mon, 2003-04-28 at 22:58, Joel Hammer wrote: > > http://www.faqchest.com/linux/samba-l/smb-02/smb-0211/smb-021127/smb02112007_11761.html > > > > Searching for NT_STATUS_LOGON_FAILURE in google found some interesting > > items, including the one above. > > > > Joel > -- > Bob McLaughlin <bobm142@attbi.com> >
Hello. I'm looking to setup printing in the local lab via samba. The printserver must hold print jobs untill released by users. I tried samba + cups with postscript drivers hosted on samba, but can't figure out hot to make it hold print jobs instead of printing them right away. Thanks
Hello, We've got this very system working in our IT suites. The basic way to do this is to set up samba to have the following lines in smb.conf>[global] > ... > ... > printcap name = lpstat > ... > .. >[printers] > ... > ... > print command = lp %s -o job-hold-until=indefinite > ...You may need to adjust the lp command to suit your system In the cupsd.conf make the following changes> .. > .. > ServerName 192.168.0.200 > SystemGroup staff > .. > <Location /jobs> > AuthType Basic > AuthClass Group > AuthGroupName staff > Allow from 192.168.* > </Location>"staff is the linux user group of the people you want to control the print jobs 192.168.0.200 is the IP address of the printserver. Check the cups documentation for more info. You should be able to go in a web-browser to http://192.168.0.200:631 if you click on jobs it should ask for your username and password Hope this helps Joe Garfoot Corpus Christi Catholic College Leeds, UK -----Original Message----- From: Oleg Biteryakov To: samba@lists.samba.org Sent: 7/10/03 2:32 PM Subject: [Samba] Samba printing Hello. I'm looking to setup printing in the local lab via samba. The printserver must hold print jobs untill released by users. I tried samba + cups with postscript drivers hosted on samba, but can't figure out hot to make it hold print jobs instead of printing them right away. Thanks -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Good Afternoon, We recently added encrypted smb passwords to our site. I just tried to add a printer to samba and it will not work. I tried to connect to \\sambahost\printer and it will not connect. All the older printers still work. I just wonder if there is an extra step I need to perform now when I add printers? Thanks for your time, Bill -- William M. Fennell Network Administrator Channing Laboratory