Hi All I am having problem printing from my Win95 machine on a Linux Box running Samba Server. I can print locally, but it fails to print when i try it from Win95. My printer share is as follows [printers] comment = All Printers path = /var/spool/lpd/lp browseable = no printable = yes guest ok = no writable = no create mask = 0700 The following is my log file. 01/15/98 12:28:20 Transaction 1 of length 158 switch message SMBnegprot (pid 1964) Requested protocol [PC NETWORK PROGRAM 1.0] Requested protocol [MICROSOFT NETWORKS 3.0] Requested protocol [DOS LM1.2X002] Requested protocol [DOS LANMAN2.1] Requested protocol [Windows for Workgroups 3.1a] Requested protocol [NT LM 0.12] Selected protocol NT LM 0.12 01/15/98 12:28:20 Transaction 2 of length 161 switch message SMBsesssetupX (pid 1964) Domain=[INETTEST] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0] sesssetupX:name=[JEELANI] adding home directory jeelani at /home/jeelani jeelani is in 1 groups 100 uid 1001 registered to name jeelani Clearing default real name Chained message switch message SMBtconX (pid 1964) ACCEPTED: validated uid ok as non-guest found free connection number 99 Connect path is /tmp chdir to /tmp chdir to /usr/local/samba/bin 01/15/98 12:28:20 jeelani1 (192.168.1.3) connect to service IPC$ as user jeelani (uid=1001,gid=100) (pid 1964) 01/15/98 12:28:20 tconX service=ipc$ user=jeelani cnum=99 01/15/98 12:28:20 Transaction 3 of length 129 switch message SMBtrans (pid 1964) chdir to /tmp trans <\PIPE\LANMAN> data=0 params=49 setup=0 Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN> (tdscnt=0,tpscnt=49,mdrcnt=1000,mprcnt=6) Doing DosPrintQGetInfo PrintQueue uLevel=2 name=LP Running the command `lpq -Plp' gave 0 fill_printq_info on <lp> gave 0 entries 01/15/98 12:28:20 Transaction 4 of length 129 switch message SMBtrans (pid 1964) trans <\PIPE\LANMAN> data=0 params=49 setup=0 Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN> (tdscnt=0,tpscnt=49,mdrcnt=1000,mprcnt=6) Doing DosPrintQGetInfo PrintQueue uLevel=2 name=LP Using cached lpq output fill_printq_info on <lp> gave 0 entries 01/15/98 12:28:22 Transaction 5 of length 39 switch message SMBtdis (pid 1964) chdir to /usr/local/samba/bin 01/15/98 12:28:22 jeelani1 (192.168.1.3) closed connection to service IPC$ Yielding connection to 99 IPC$ 01/15/98 12:28:22 tdis cnum=99 end of file from client Closing connections 01/15/98 12:28:22 Server exit (normal exit) 01/15/98 12:28:45 Transaction 1 of length 158 switch message SMBnegprot (pid 1966) Requested protocol [PC NETWORK PROGRAM 1.0] Requested protocol [MICROSOFT NETWORKS 3.0] Requested protocol [DOS LM1.2X002] Requested protocol [DOS LANMAN2.1] Requested protocol [Windows for Workgroups 3.1a] Requested protocol [NT LM 0.12] Selected protocol NT LM 0.12 01/15/98 12:28:45 Transaction 2 of length 161 switch message SMBsesssetupX (pid 1966) Domain=[INETTEST] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0] sesssetupX:name=[JEELANI] adding home directory jeelani at /home/jeelani jeelani is in 1 groups 100 uid 1001 registered to name jeelani Clearing default real name Chained message switch message SMBtconX (pid 1966) ACCEPTED: validated uid ok as non-guest found free connection number 77 Connect path is /var/spool/lpd/lp jeelani is in 1 groups 100 chdir to /var/spool/lpd/lp chdir to /usr/local/samba/bin 01/15/98 12:28:45 jeelani1 (192.168.1.3) connect to service lp as user jeelani (uid=1001,gid=100) (pid 1966) 01/15/98 12:28:45 tconX service=lp user=jeelani cnum=77 01/15/98 12:28:45 Transaction 3 of length 70 switch message SMBopenX (pid 1966) chdir to /var/spool/lpd/lp unix_clean_name [] unix_clean_name [jeelan.a01966] Allocated new file_fd_struct 0, dev = ffffffff, inode = ffffffff Error opening file jeelan.a01966 (Permission denied) (flags=65) fd_attempt_close on file_fd_struct 0, fd = -1, dev = ffffffff, inode = ffffffff, open_flags = 1, ref_count = 1. 01/15/98 12:28:45 error packet at line 1235 cmd=45 (SMBopenX) eclass=1 ecode=5 error string = Permission denied 01/15/98 12:28:45 Transaction 4 of length 70 switch message SMBopenX (pid 1966) unix_clean_name [] unix_clean_name [jeelan.a01966] Allocated new file_fd_struct 0, dev = ffffffff, inode = ffffffff Error opening file jeelan.a01966 (Permission denied) (flags=65) fd_attempt_close on file_fd_struct 0, fd = -1, dev = ffffffff, inode = ffffffff, open_flags = 1, ref_count = 1. 01/15/98 12:28:45 error packet at line 1235 cmd=45 (SMBopenX) eclass=1 ecode=5 error string = Permission denied 01/15/98 12:28:45 Transaction 5 of length 39 switch message SMBtdis (pid 1966) chdir to /usr/local/samba/bin 01/15/98 12:28:45 jeelani1 (192.168.1.3) closed connection to service lp Yielding connection to 77 lp Yielding connection to 77 STATUS. Yield successful 01/15/98 12:28:45 tdis cnum=77 end of file from client Closing connections 01/15/98 12:28:45 Server exit (normal exit) Thanks in advance RGDS Jeelani
> I can print locally, but it fails to print when i try it from Win95.> chdir to /var/spool/lpd/lp > unix_clean_name [] > unix_clean_name [jeelan.a01966] > Allocated new file_fd_struct 0, dev = ffffffff, inode = ffffffff > Error opening file jeelan.a01966 (Permission denied) (flags=65)Make sure the /var/spool/lpd/lp exists and is writeable by users. j- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu http://www.eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
If this is not the correct place for this mail, please notify me an provide the correct address. My problem is with printing. When the "print command" from the smb.conf file is accessed, it apparently fails, for what I believe is the error of "not a printable file". I am sending print jobs from Win98 to Linux Samba. The file arrives and is spooled correctly. I can direct the spool file to the printer manually using the command "cat filename > /dev/lp1" and the file prints properly, however if I use "lpr filename", then I get an unprintable file error from lpr. I am using an HP560C Deskjet and I can print ok using regular doc files using lpr. I have used printtool to configure my etc/printcap file. I believe that my problem is the resolution of the proper lpr command to use as the "print command" in the smb.conf file. I am using "lpr -r -P%p %s" currently and have tried many variations using the -Ff filter formats to no avail. I know that I am spooling the file correctly or the "cat filename > /dev/lp1" would not work, so the problem has to be the lpr command. Please provide the proper command or the correct HOWTO to resolve this problem. Thank You -- George E. Turner Software Engineer - TBMCS Program GDE Systems Inc. Colorado Springs, CO 80921 Bus. PH:719-594-1738 (after 11/23 277-5244) Home PH:719-591-0604 e-mail:george.turner@lmco.com or geturner@codenet.net -------------- next part -------------- HTML attachment scrubbed and removed
We're experiencing a printing problem between Window 95 and samba. At present, we're running samba-1.9.18p10 for file and print services. Students attempting to print in the public PC labs are experiencing printing problems (the PC stops printing) that can often be fixed in one of two ways. The first and most effective mechanism is to reboot the Win95 PC. The second method involves going to the printer properties box (details tab), retyping the port name, and choosing apply. This often fixes the problem and allows the Win95 PC to print again. This is probably a Win95 issue and not samba related, but I'm wondering if other samba users are experiencing similar difficulties. We did not experience this last year so I'm curious about the PC's MS Networking support; last year, we were still running Netware. Any thoughts or similar occurrences? Scott ------------------------------------------------------------------------ Scott Moomaw, Network Administrator Scott@Bridgewater.edu Bridgewater College, C E Shull Computing Center Bridgewater, VA 22812 Phone (540) 828 - 8000 x5437 FAX: (540) 828 - 5493
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smb.conf Type: application/octet-stream Size: 11385 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19990125/ac10e5b9/smb.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: printers.def Type: application/octet-stream Size: 162 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19990125/ac10e5b9/printers.obj
Help, I cannot get printing to work and am running out of ideas. File serving is OK. server is RedHat 5.2/samba-1.9.18p10 with HP lasejet 4L connected to the printing port client is a windows3.1 with Lanman 2.2. When I try to print from Word in windows3.1, I get an error :- LPT1 Windows cannot write to this file. The disk may be full. Delete any unwanted file, and then try again If I then go to Printman -->Network connections, I get the error:- WINFILE caused a General Protection Fault in module NETAPI.DLL at 003.1B0C and Printman will then quit. In smb.conf, I have for printing as [prn] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes Changing writable to yes doesn't doesn't work either.. /etc/printcap is set from printtool and have /var/spool/samba as the spool directory. One more thing, sometimes I find a file lpqxxxxxx in /tmp which contains the line lpq : prn : unknown printer Thanks Richard KHOO Guan Chen
Hi, I am not sure wether this is the right place to ask this kind of question, but I have problem printing to a local printer. My Samba server is a Suse 6.1 and the printer is a HPLJ III, connected to LPT1. How do I setup this printer? I have already edited the printcap file but lpq keeps saying that the printer is offline. Printjobs arrive in the queue and lpd is running. Nothing happens... I have little experience on Linux and Unix and never did I connect a printer to a Linux box. Any quick guides? Mark -------------- next part -------------- HTML attachment scrubbed and removed
hello: This is th situation: 1 Linux samba server and 1 Windows NT server both with printers. At the moment, the printer conected to the samba server has no ink, so everything goes to the NT server. Problem: When ever I send something to print from the linux PC to the NT server, first it prints a page with 1 black diamond on the left top of the page. At this point I have a pill of pages useless because of this. Is there any solution? I using samba 2.0.5a-1 TIA...... :-) -- "And I'm happy, because you make me feel good, about me." - Melvin Udall ----------------------------------------------------------------- Martín Marqués email: martin@math.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
"Martin A. Marques" wrote:> > hello: > This is th situation: 1 Linux samba server and 1 Windows NT server > both with printers. At the moment, the printer conected to the samba server > has no ink, so everything goes to the NT server. > Problem: When ever I send something to print from the linux PC to the > NT server, first it prints a page with 1 black diamond on the left top of the > page. At this point I have a pill of pages useless because of this. Is there > any solution? > > I using samba 2.0.5a-1 > > TIA...... :-) >It looks like your "printer drivers" and not quite compatible. Change the samba print command to not remove the file after sending it to the NT server. On NT print a test to a file and compare the beginning to see what is added to the samba version. You can then easily create a perl or sed script to strip this before sending the print job. -- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 2011 N Shoreline Blvd Strategic Software Organization Mountain View, CA 94043 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 ======================================================================
I just upgraded an extremely old samba installation to version 2.0.7, installed via the FreeBSD ports collection. I am having a problem with some print jobs giving the error "Your printer job was not printed because it was not linked to the original file". I examined the spool directory for the printer and noticed that some of the spool filenames are considerably more descriptive than I remember them being under the old verion of samba. Jobs from Microsoft Word (which are the ones I seem to be having problems with) actually include the filename of the document that was printed. However, these descriptive spool file names appear to have no way of insuring uniqueness, such that if the same document were to be printed again before the spool file was deleted, the spool file would be overwritten. To potentially complicate matters, I also have my print command set to include the -s option to lpr. This makes lpr use symlinks and allows large print jobs to be printed. This all worked find under the ancient version of samba. I have never seen this error message or had problems of this nature until after the upgrade. I am using the same smb.conf on the new version as I did on the old version. The situation that brought these errors about was when a single document was printed over and over and over in the space of a few minutes. Some of the jobs got printed, some didn't. For every job that didn't print, the user got a message in their mailbox giving the "not linked to the original file" error message. My thinking so far is that the spool file is being overwritten while the symlink to the spool file is still being processed as a previous print job. Thoughts? Thanks, -- Warren Smith Chief Engineer CSW Net, Inc. 501-880-2230 warren@cswnet.com
This is in reference to Odhiambo Washington's help request. I too have that same problem. Well, I should say that I didn't last week. I only added a new printer to the network and everything is fine. But, then all of a sudden one of my other printers is doing the exact same thing of OWashington's . First I had that can't get to //bogus/printer then now I can print from the unix host, but the win98 client prints, it seems to go to the printer (lights activity) but, then it disappears. I only added printer to printcap and reinitialiazed. Was there any real solutions? my /var/spool/samba is rwxrwxrwx root root my /var/spool/lpd/hplj is rwxr-xr-x root lp thanks for any help.
Greetings, I'm using samba 2.0.7 on a SuSE-linux system with two printers (deskjet and laserjet). when printing from the linux system everything works fine. but when printing from a windows system every printing job is followed by an empty page. Is this a driver or a samba problem? Anyone has the same experience? Please give some advice. Thanks a lot! -Bernhard -------------- next part -------------- HTML attachment scrubbed and removed
I am running samba in Mandrake Linux 7.2 on a PII box. I have a HP4MP postscript printer on a NT 4.0 sp 5 machine. Went through the DrakConf utility to set up a smb printer. Files print ok but it prints 10 copies of each file! The printcap file has a single line: hp4mp: The printers.conf file from /etc/cups is # Printer configuration file for CUPS v1.1.4 # Written by cupsd on Thu Apr 5 15:24:00 2001 <DefaultPrinter hp4mp> Info hp postscript Location e5250 DeviceURI smb://mccreary:rebecca2@e5250/HPLaserJet State Idle Accepting Yes JobSheets none none </Printer> What else do I need to do or what do I change so that this multiple page business stops. How do I start diagnosing where the problem may be originating? Charles R. McCreary, P.E. CRM Engineering Services 13774 Hwy 322 Kilgore, TX 75662 (903) 643-3490
Got a slight problem with printing from WindowsXP to my Mandrake 8.0 server running Samba 2.2.1a. Samba is configured for file/print services on my home lan and is configured to start when the server boots. The weird thing is that when the pcs come onto the lan they map their appropriate network shares no problem, but, the connection to the printer is not there. What makes this even stranger is that I know samba is configured properly cause a simple stop/start of samba makes the problem go away. My question is why does the printer not get advertised when the samba server originally boots when the network file shares do? Any help would be much appreciated. David. -------------- next part -------------- HTML attachment scrubbed and removed
I thought of this myself but samba is started from rc.local which is the very last thing that gets run at boot. I'm fairly certain it's something to do with cups but as of yet have not been able to track it down. Any other ideas? David. -----Original Message----- From: Leonardo Luiz Padovani da Mata [mailto:barroca@dcc.ufmg.br] Sent: 30 October 2001 3:54 pm To: David Gregory Cc: samba@lists.samba.org Subject: Re: Printing Problem maybe, the lp server is starting after the samba server, and the priter couldn't be found. Check this Leonardo On Tue, 30 Oct 2001, David Gregory wrote:> Got a slight problem with printing from WindowsXP to my Mandrake 8.0 > server running Samba 2.2.1a. > > Samba is configured for file/print services on my home lan and is > configured to start when the server boots. The weird thing is thatwhen> the pcs come onto the lan they map their appropriate network shares no > problem, but, the connection to the printer is not there. What makes > this even stranger is that I know samba is configured properly cause a > simple stop/start of samba makes the problem go away. My question iswhy> does the printer not get advertised when the samba server originally > boots when the network file shares do? > > Any help would be much appreciated. > > David. >
Done that too. :) I'm definitely leaning towards something to do with cups. To get cups printing in samba I've set: Printing = cups Printcap = lpstat As per the docs. Logically then when samba starts and initialises the printer it obviously calls lpstat which must query cups but come back with nothing. I'll have to check the cups docs and see if there's a delay between launching the daemon and it advertising the printer. Maybe there's a setting for cups to perk everything up. I'll keep trawling. David. -----Original Message----- From: Leonardo Luiz Padovani da Mata [mailto:barroca@dcc.ufmg.br] Sent: 31 October 2001 5:09 pm To: David Gregory Cc: samba@lists.samba.org Subject: RE: Printing Problem duplicate the scrit that starts the samba, starting and restarting at startup Barroca On Wed, 31 Oct 2001, David Gregory wrote:> I thought of this myself but samba is started from rc.local which isthe> very last thing that gets run at boot. I'm fairly certain it'ssomething> to do with cups but as of yet have not been able to track it down. Any > other ideas? > > David. > > -----Original Message----- > From: Leonardo Luiz Padovani da Mata [mailto:barroca@dcc.ufmg.br] > Sent: 30 October 2001 3:54 pm > To: David Gregory > Cc: samba@lists.samba.org > Subject: Re: Printing Problem > > maybe, the lp server is starting after the samba server, and thepriter> couldn't be found. > Check this > Leonardo > > On Tue, 30 Oct 2001, David Gregory wrote: > > > Got a slight problem with printing from WindowsXP to my Mandrake 8.0 > > server running Samba 2.2.1a. > > > > Samba is configured for file/print services on my home lan and is > > configured to start when the server boots. The weird thing is that > when > > the pcs come onto the lan they map their appropriate network sharesno> > problem, but, the connection to the printer is not there. What makes > > this even stranger is that I know samba is configured properly causea> > simple stop/start of samba makes the problem go away. My question is > why > > does the printer not get advertised when the samba server originally > > boots when the network file shares do? > > > > Any help would be much appreciated. > > > > David. > > > >
Using Red Hat 7.1 (although it has been happening since 6.2) The samba that came with RH7.1 Win2K server (although same problem with NT4) HP Laserjet IIP Whenever I print, I get three copies. Please help !?!?!?!?!?!?!?!? --------------------- There are many who would take my time. I shun them. There are some who share my time. I am entertained by them. There are precious few who contribute to my time. I cherish them. -Anton LaVey --------------------- Richard D. Gregorio Jr. rgrego@clam.rutgers.edu AIM: sarumanthewhite http://www.orthanc.st
Please provide more information. Does this problem occur printing directly from linux? Does this happen with just one or with all application? If just with samba, please post your smb.conf. If with all printing, post your printcap. Joel On Thu, Nov 08, 2001 at 04:09:50PM -0500, Richard Gregorio wrote:> Using Red Hat 7.1 (although it has been happening since 6.2) > The samba that came with RH7.1 > Win2K server (although same problem with NT4) > HP Laserjet IIP > > Whenever I print, I get three copies. >
The printer is connected to the win2k server. I print from linux, any app, and get three copies. I tried Netscape, Konqueror, StarOffice, all with the same results. I set up the printer using printtool, told the machine that it was a samba printer. I would send copies of the smb.conf and printcap, but I am at work. I can post them when I get home. On Thu, 8 Nov 2001, Joel Hammer wrote:> Please provide more information. > Does this problem occur printing directly from linux? > Does this happen with just one or with all application? > If just with samba, please post your smb.conf. > If with all printing, post your printcap. > Joel > On Thu, Nov 08, 2001 at 04:09:50PM -0500, Richard Gregorio wrote: > > Using Red Hat 7.1 (although it has been happening since 6.2) > > The samba that came with RH7.1 > > Win2K server (although same problem with NT4) > > HP Laserjet IIP > > > > Whenever I print, I get three copies. > > >--------------------- There are many who would take my time. I shun them. There are some who share my time. I am entertained by them. There are precious few who contribute to my time. I cherish them. -Anton LaVey --------------------- Richard D. Gregorio Jr. rgrego@clam.rutgers.edu AIM: sarumanthewhite http://www.orthanc.st
On Thu, 8 Nov 2001, Richard Gregorio wrote:> The printer is connected to the win2k server. > I print from linux, any app, and get three copies. > > I tried Netscape, Konqueror, StarOffice, all with the same results. > > I set up the printer using printtool, told the machine that it was a samba > printer. > > I would send copies of the smb.conf and printcap, but I am at work. I can > post them when I get > home. > > > On Thu, 8 Nov 2001, Joel Hammer wrote: > > > Please provide more information. > > Does this problem occur printing directly from linux? > > Does this happen with just one or with all application? > > If just with samba, please post your smb.conf. > > If with all printing, post your printcap. > > Joel > > On Thu, Nov 08, 2001 at 04:09:50PM -0500, Richard Gregorio wrote: > > > Using Red Hat 7.1 (although it has been happening since 6.2) > > > The samba that came with RH7.1 > > > Win2K server (although same problem with NT4) > > > HP Laserjet IIP > > > > > > Whenever I print, I get three copies. > > > > > > > --------------------- > There are many who would take my time. I shun them. > There are some who share my time. I am entertained by them. > There are precious few who contribute to my time. I cherish them. > > -Anton LaVey > --------------------- > > Richard D. Gregorio Jr. > rgrego@clam.rutgers.edu > AIM: sarumanthewhite > http://www.orthanc.st > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hi, I have a permanent printing problem with samba-2.2.2-20011013 8-(. I use the following configuration: Red Hat 7.1 with 2.4.7, LPRng-3.7.4-28 Here is the relevant part of my client's log:> [2001/11/21 08:04:17, 0] tdb/tdbutil.c:tdb_log(342) > tdb(/var/cache/samba/printing.tdb): rec_read bad magic 0xd9fee666 at offset=4 > [2001/11/21 08:04:17, 0] tdb/tdbutil.c:tdb_log(342) > tdb(/var/cache/samba/printing.tdb): rec_read bad magic 0xd9fee666 at offset=4 > [2001/11/21 08:06:07, 0] rpc_server/srv_spoolss_nt.c:get_printer_snum(337) > get_printer_snum: Invalid handle (OTHER) > [2001/11/21 08:06:07, 0] rpc_server/srv_spoolss_nt.c:close_printer_handle(261) > close_printer_handle: Invalid handle (OTHER) > [2001/11/21 08:06:07, 0] rpc_server/srv_spoolss_nt.c:get_printer_snum(337) > get_printer_snum: Invalid handle (OTHER) > [2001/11/21 08:06:07, 0] rpc_server/srv_spoolss_nt.c:_spoolss_startdocprinter(3 > _spoolss_startdocprinter: Invalid handle (OTHER) > [2001/11/21 08:06:07, 0] rpc_server/srv_spoolss_nt.c:close_printer_handle(261) > close_printer_handle: Invalid handle (OTHER) > [2001/11/21 17:42:31, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) > call_nt_transact_ioctl: Currently not implemented. > [2001/11/21 18:34:13, 0] lib/util_sock.c:read_socket_data(478) > read_socket_data: recv failure for 4. Error = Connection reset by peer > [2001/11/21 18:34:49, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) > call_nt_transact_ioctl: Currently not implemented. > [2001/11/22 07:39:39, 0] smbd/nttrans.c:call_nt_transact_ioctl(1762) > call_nt_transact_ioctl: Currently not implemented.After I restart smb and/or delete printing.tdb the printing will be ok. I can not catch the moment when the things go wrong but I need for 2.2.2 because of PDC but I more need for a reliable printing 8-(. Should I try a cvs snapshot or should I downgrade ? Any suggestion would be appreciated. tia and by.,Sanya -- ...Feher Sandor... mailto:fehers@freemail.hu http://w3.swi.hu/sfeher
I'm unable to print from a Windows 2000 VMware machine, to a Samba 2.2.1a host. In the "Status" line about the printer in Windows, I see "Access denied, unable to connect". I can squeeze out a print by printing to a file, then dumping that file to the printer in Linux. The last couple of lines from that machine's log file are: [2002/02/13 11:10:22, 2] lib/access.c:check_access(316) Allowed connection from (192.168.1.21) [2002/02/13 11:12:23, 2] lib/access.c:check_access(316) Allowed connection from (192.168.1.21) Should there be something, between "from" and "("? I've got this in /etc/hosts.lpd: vmware ("vmware" is defined in /etc/hosts as being 192.168.1.21, which is the address of the machine.) And this in /etc/hosts.allow: ALL : localhost,192.168.1. The relevant lines from smb.conf are: [global] hosts allow = 192.168.1. printing = lpr print command = echo "on printer '%p', file '%P/%s'" >> /tmp/file2 ; /usr/bin/lpr -r -P"%p" "%s" I have lpr, not lprng. I felt lprng was too much of a configuration nightmare, and I only have a few users (all of whom are trusted), and nobody can reach in here from the outside. Does anybody know how to fix this? Thanks. -- -eben eQbWeEnR@gTaYtUeI.nOePt home.tampabay.rr.com/hactar LEO: Now is not a good time to photocopy your butt and staple it to your boss' face, oh no. Eat a bucket of banana pudding and wash it down with a gallon of strawberry Quik. -- Weird Al, _Your Horoscope for Today_
Have a problem printing that hopefully someone has seen already. I get "Access Denied, Unable to connect" after printer is installed, but it says ready when browsing it on server. Brian Hatch Network Administrator Pason Systems USA mailto:bhatch@us.pason.com
Hi, We have problems with shared printers with Samba 2.2.5, Red hat 7.3 and clients Windows 2000. When we print some file on win2k, if we want to see the print queue the printer status shows: "Access Denied...". We can not see the jobs on queue but it prints fine. We have added "use client driver = yes" on printers section in smb.conf file and now, the status shows "Open Error...", we can not see the jobs on queue but it prints fine Do you know why we can not access the print queue? I hope that you could help me. Thanks a lot cheers Cristian Dotro
Try adding "guest ok=yes" for the printer. Make sure you have a guest user set up too, like ftp or some other non-login account. Jim> -----Original Message----- > From: Cristian Dotro [mailto:CDOTRO@roemmers.com.ar] > Sent: Tuesday, September 10, 2002 12:22 PM > To: samba@samba.org > Subject: [Samba] Printing problem > > > Hi, > > We have problems with shared printers with Samba 2.2.5, Red > hat 7.3 and clients Windows 2000. > > When we print some file on win2k, if we want to see the print > queue the printer status shows: "Access Denied...". We can > not see the jobs on queue but it prints fine. > We have added "use client driver = yes" on printers section > in smb.conf file and now, the status shows "Open Error...", > we can not see the jobs on queue but it prints fine > Do you know why we can not access the print queue? > I hope that you could help me. Thanks a lot > cheers > Cristian Dotro > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Jim: thanks for your answer, We have now guest ok=yes. I send you our printers section [printers] comment = All Printers path = /var/spool/samba read only = No guest ok = Yes printable = Yes use client driver = Yes browseable = No thanks again Cristian>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 09/10 5:59 >>>Try adding "guest ok=yes" for the printer. Make sure you have a guest user set up too, like ftp or some other non-login account. Jim> -----Original Message----- > From: Cristian Dotro [mailto:CDOTRO@roemmers.com.ar] > Sent: Tuesday, September 10, 2002 12:22 PM > To: samba@samba.org > Subject: [Samba] Printing problem > > > Hi, > > We have problems with shared printers with Samba 2.2.5, Red > hat 7.3 and clients Windows 2000. > > When we print some file on win2k, if we want to see the print > queue the printer status shows: "Access Denied...". We can > not see the jobs on queue but it prints fine. > We have added "use client driver = yes" on printers section > in smb.conf file and now, the status shows "Open Error...", > we can not see the jobs on queue but it prints fine > Do you know why we can not access the print queue? > I hope that you could help me. Thanks a lot > cheers > Cristian Dotro > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Jim, we found it! The problem was in lpd.perms. We commented some "reject" lines and then , it works fine Thanks for your help Cheers Cristian>>> "Van Sickler, Jim" <vansickj-eodc@Kaman.com> 09/10 5:59 >>>Try adding "guest ok=yes" for the printer. Make sure you have a guest user set up too, like ftp or some other non-login account. Jim> -----Original Message----- > From: Cristian Dotro [mailto:CDOTRO@roemmers.com.ar] > Sent: Tuesday, September 10, 2002 12:22 PM > To: samba@samba.org > Subject: [Samba] Printing problem > > > Hi, > > We have problems with shared printers with Samba 2.2.5, Red > hat 7.3 and clients Windows 2000. > > When we print some file on win2k, if we want to see the print > queue the printer status shows: "Access Denied...". We can > not see the jobs on queue but it prints fine. > We have added "use client driver = yes" on printers section > in smb.conf file and now, the status shows "Open Error...", > we can not see the jobs on queue but it prints fine > Do you know why we can not access the print queue? > I hope that you could help me. Thanks a lot > cheers > Cristian Dotro > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hi, First of all, thanks for all the replies that I got a couple of weeks ago about another question; it really helped me understanding the issue. Now I'm installing a printer on my Linux server (RH 7.3 with Samba 2.2.6); I can print from my Linux computer, and even see the printer from my XP computer, but I can't print from XP. Here's my smb.conf: [global] netbios name = Maggie security = share printing = bsd printcap name = /etc/printcap load printers = yes [public] path = /usr/public browseable = yes guest ok = yes read only = no [printers] comment = Brother HL-1650 security = share path = /var/spool/lpd/Brother_HL-1650 browseable = no public = yes guest ok = yes writable = no printable = yes use client driver = yes Like I said, from the Linux server, everything is OK and I can print. When I go to my XP computer, and I click "Add a printer", XP can find my printer by browsing the network, and the installation is without any glitches. I can see the printer properties but when I try to print the test page, I got an error message: "Test page failed to print.". If I try to print from WordPad, it says that it's printing for a fraction of a second, but then says also "Unable to print". Thanks in advance! Jean-Francois Pelletier
----- Original Message ----- From: "Jean-Francois Pelletier" <jf@heartsome.net> To: <samba@lists.samba.org> Sent: Thursday, November 28, 2002 4:50 AM Subject: [Samba] Printing problem> Hi, > > First of all, thanks for all the replies that I got a couple of weeks<snip> Perhaps because you have no printing commands? My working printer share looks something like this: [lj4500n] comment = HP LaserJet 4500N path = /var/spool/samba read only = No guest ok = Yes printable = Yes print command = lpr -P lj4500n -r %s -h; rm %s printer name = lj4500n oplocks = No share modes = No admin users = @Domain+IT valid users = @"Domain+Domain Users" Shaolin - IT Systems WB Ltd. .: http://www.security-forums.com :.
Hello again, I have another problema with samba: there is a shared printer installed in the samba server machine. Windows users can print with no problem, but the printer icon goes away from the system tray before the printing finishes and we just can't cancel any printing. Is there any solution to this? Thanks in advance. _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br
I just update our server to solaris 8 and now have problem to print there using samba. Here are a few lines that of the log files that could help to understand the problem: unix_clean_name [OSCARXLOVE.f5aGki] 01/02/03 15:14:53 guest opened file OSCARXLOVE.f5aGki read=No write=Yes (numopen=1 fnum=1) 01/02/03 15:14:53 openprint OSCARXLOVE.f5aGki fd=8 fnum=1 cnum=37 Discarding null print job OSCARXLOVE.f5aGki 01/02/03 15:14:53 guest closed file OSCARXLOVE.f5aGki (numopen=0) unix_clean_name [OSCARXLOVE.g5aGki] 01/02/03 15:14:53 guest opened file OSCARXLOVE.g5aGki read=No write=Yes (numopen=1 fnum=1) 01/02/03 15:14:53 openprint OSCARXLOVE.g5aGki fd=8 fnum=1 cnum=37 smbrun - running /usr/local/samba-1.9.15p8/bin/smbrun "(/usr/bin/lp -c -dhplj5 /var/SMBtmp/OSCARXLOVE.g5aGki; rm /var/SMBtmp/OSCARXLOVE.g5aGki 2>&1) > /dev/null" gave 0 Running the command `/usr/bin/lp -c -dhplj5 /var/SMBtmp/OSCARXLOVE.g5aGki; rm /var/SMBtmp/OSCARXLOVE.g5aGki' gave 0 01/02/03 15:14:55 guest closed file OSCARXLOVE.g5aGki (numopen=0) Any idea why the lp command gave 0? It creates the OSCARXLOVE.g5aGki file just OK but nothing is printing. It is print just fine if I manually run the command '/usr/bin/lp -c -dhplj5 /var/SMBtmp/OSCARXLOVE.g5aGki' Please Help. -Oscar -- Oscar Lovera Department of Earth & Space Sciences Geology Building 595 Circle Drive East University of California, Los Angeles, 90095-1667 Office: Ph. and Fax: (310) 206-2657 Home: Ph. (562) 928-1849
Oscar. I am having the identical problem. Posted to the group a couple of weeks ago but have not been able to resolve the problem. I am new to Samba and still trying to resolve this so I would really appreciate it if you could keep me posted on any progress you make. I have omitted the 'rm' portion on my print command so I am able to see the print job get spooled to /tmp (the path specified in my printer share) but it never gets passed on to the printer. Like you I am able to print the file manually from /tmp. Here is a snip from my log file which was not included in my original posting (samba printing on Solaris 8, posted on Dec 11 2002): [2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335) named pipe command on <> name [2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297) Got API command 0x26 on pipe "spoolss" (pnum 7030)free_pipe_context: destroying talloc pool of size 0 [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152) Doing \PIPE\spoolss [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184) api_rpcTNP: rpc command: SPOOLSS_OPENPRINTEREX checking name: \\Hydra\lasersys [2003/01/03 09:14:09, 3] rpc_server/srv_spoolss_nt.c:set_printer_hnd_printertype(377) Setting printer type=\\Hydra\lasersys [2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(242) se_access_check: user sid is S-1-5-21-2119108545-1539534483-2980339713-4096 [2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245) se_access_check: also S-1-5-21-2119108545-1539534483-2980339713-7001 [2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245) se_access_check: also S-1-1-0 [2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245) se_access_check: also S-1-5-2 [2003/01/03 09:14:09, 3] lib/util_seaccess.c:se_access_check(245) se_access_check: also S-1-5-11 [2003/01/03 09:14:09, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(417) free_pipe_context: destroying talloc pool of size 1968 [2003/01/03 09:14:09, 3] smbd/process.c:process_smb(860) Transaction 472 of length 144 [2003/01/03 09:14:09, 3] smbd/process.c:switch_message(667) switch message SMBtrans (pid 2479) [2003/01/03 09:14:09, 3] smbd/ipc.c:reply_trans(483) trans <\PIPE\> data=64 params=0 setup=2 [2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335) named pipe command on <> name [2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297) Got API command 0x26 on pipe "spoolss" (pnum 7030)free_pipe_context: destroying talloc pool of size 0 [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152) Doing \PIPE\spoolss [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184) api_rpcTNP: rpc command: SPOOLSS_ENUMJOBS [2003/01/03 09:14:09, 3] printing/printing.c:print_cache_expired(758) print cache expired [2003/01/03 09:14:09, 3] printing/print_generic.c:print_run_command(90) Running the command `/bin/lpstat -olaser_sys' gave 0 [2003/01/03 09:14:09, 3] printing/printing.c:print_queue_update(391) 0 jobs in queue for lasersys [2003/01/03 09:14:09, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(417) free_pipe_context: destroying talloc pool of size 52 [2003/01/03 09:14:09, 3] smbd/process.c:process_smb(860) Transaction 473 of length 124 [2003/01/03 09:14:09, 3] smbd/process.c:switch_message(667) switch message SMBtrans (pid 2479) [2003/01/03 09:14:09, 3] smbd/ipc.c:reply_trans(483) trans <\PIPE\> data=44 params=0 setup=2 [2003/01/03 09:14:09, 3] smbd/ipc.c:named_pipe(335) named pipe command on <> name [2003/01/03 09:14:09, 3] smbd/ipc.c:api_fd_reply(297) Got API command 0x26 on pipe "spoolss" (pnum 7030)free_pipe_context: destroroying talloc pool of size 0 [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_pipe_request(1152) Doing \PIPE\spoolss [2003/01/03 09:14:09, 3] rpc_server/srv_pipe.c:api_rpcTNP(1184) api_rpcTNP: rpc command: SPOOLSS_CLOSEPRINTER [2003/01/03 09:14:09, 3] rpc_server/srv_lsa_hnd.c:close_policy_hnd(186) Closed policy [2003/01/03 09:14:09, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(417) free_pipe_context: destroying talloc pool of size 0
I currently have Samba set up in a test environment. Samba is installed and running on a Unix box, Solaris 8. I have one workstation which I use to access it. I have created three identical users: User1, User2, User3. I have a printer installed on the Unix box. All three users can see the shares (including the printer) while browsing the tree. The problem is when I login to the workstation as User1 printing works just fine but I have no success printing as User2 or User3. Any suggestions on how to resolve this? Here's a copy of my smb.conf. # Global parameters [globals] netbios name = HYDRA server string = Samba %v on Netbios (%L), DNS hostname (%h) workgroup = SIMPLE dead time = 5 encrypt passwords = yes passwd chat = "*New Password:*" %n\r "*New password (again):*" %n\r "*Password changed*" passwd program = /usr/bin/passwd %u smb passwd file = /usr/local/samba/private/smbpasswd invalid users = root daemon bin sys adm lp listen sshd\ erl webspirs samba rob jan daulton auto services = user1 browsable = no writeable = yes # Debug Logging information log level = 3 log file = /usr/local/samba/var/log.%m max log size = 100 debug timestamp = yes # printing stuff printing = SYSV # printcap name = lpstat printcap name = /usr/local/samba/lib/printcap load printers = yes use client driver = yes # -------------------------------- # [homes] User Home Directories] # [user1] and [user2] commented # ------------------------------- [homes] # comment = "Home Directory for : %U " comment = "%U " path = /files1/%g/%U guest ok = no read only = no create mode = 740 writable = yes browseable = yes [deptshr] comment = "%g Shared Directory" comment = "%g Shared Directory" path = /files1/%g/common guest ok = yes valid users = @smbuser read only = no create mask = 0770 directory mask = 0770 writable = yes browseable = yes [usrdata] path = /files1/test browseable = yes comment = Data Drive volume = Sample-Data-Drive writeable = yes valid users = user1 guest ok = no [public] comment = " Common shared directory" path = /files1/usrshare valid users = @smbuser browseable = yes writeable = yes create mode = 0777 directory mode = 0777 guest ok = yes [apps] comment = apps folder path = /files1/apps browseable = yes writeable = no write list = @smbuser [printers] comment = "Printers" path = /tmp printable = yes create mask = 0700 browseable = yes public = yes guest ok = yes print ok = yes # load printers = yes [lasersys] comment = systems laser printer browseable = yes printer = laser_sys create mask = 0700 printable = yes guest ok = yes printing = SYSV print command = /bin/lp -c -d%p %s; rm %s # print command = /bin/lp -c -dlaser_sys %s; rm %s path = /tmp
Well, this may not seem like much, but, I looked at your logs. The smblogs looked identical. The client logs had only these differences. param/loadparm.c:lp_add_home(1890) adding home directory user2 at /files1/test smbd/service.c:make_connection(610) simplewkstn (134.117.10.119) connect to service IPC$ as user nobody (uid=60001, gid=60001) (pid 13042) smbd/service.c:make_connection(610) simplewkstn (134.117.10.119) connect to service IPC$ as user user2 (uid=1548, gid=3000) (pid 12970) The first and last line come from user2's log. What this means is that user2 and user1 are not being treated identically by samba. So, find out why user2 adds a home directory and user1 doesn't, and find out why user1 is treated as nobody when he logs onto the IPC$ (whatever that is) and user2 is logged on as user2. Joel n Thu, Jan 16, 2003 at 02:19:09PM -0500, daulton theodore wrote:> Joel. I was not sure what to look for or send as a response so I have captured > sessions for user1 and user2 with the following steps: start daemon, login as > client (user1 and user2), poen Windows Explorer, locate the file, open the > file, print the file (Wordpad: File > Print), close the file, close explorer, > log off, kill the daemon processes. I am attaching the smbd and client log > files for each session. Hope this is not overkill. > Thanks for your help! > > > > Joel Hammer wrote: > > > Well, since one of three can print, it suggests a client configuration > > problem. > > What error is being reported? > > What do the smb log say? > > > > Joel > > > > On Wed, Jan 15, 2003 at 02:08:34PM -0500, daulton theodore wrote: > > > I currently have Samba set up in a test environment. Samba is installed > > > and running on a Unix box, Solaris 8. I have one workstation which I use > > > to access it. I have created three identical users: User1, User2, User3. > > > I have a printer installed on the Unix box. All three users can see the > > > shares (including the printer) while browsing the tree. The problem is > > > when I login to the workstation as User1 printing works just fine but I > > > have no success printing as User2 or User3. Any suggestions on how to > > > resolve this? Here's a copy of my smb.conf. > > > > > > # Global parameters > > > [globals] > > > netbios name = HYDRA > > > server string = Samba %v on Netbios (%L), DNS hostname (%h) > > > workgroup = SIMPLE > > > > > > dead time = 5 > > > encrypt passwords = yes > > > passwd chat = "*New Password:*" %n\r "*New password (again):*" %n\r > > > "*Password changed*" > > > passwd program = /usr/bin/passwd %u > > > smb passwd file = /usr/local/samba/private/smbpasswd > > > > > > invalid users = root daemon bin sys adm lp listen sshd\ > > > erl webspirs samba rob jan daulton > > > auto services = user1 > > > browsable = no > > > writeable = yes > > > > > > # Debug Logging information > > > log level = 3 > > > log file = /usr/local/samba/var/log.%m > > > max log size = 100 > > > debug timestamp = yes > > > > > > > > > # printing stuff > > > printing = SYSV > > > # printcap name = lpstat > > > printcap name = /usr/local/samba/lib/printcap > > > load printers = yes > > > use client driver = yes > > > > > > > > > # -------------------------------- > > > # [homes] User Home Directories] > > > # [user1] and [user2] commented > > > # ------------------------------- > > > [homes] > > > # comment = "Home Directory for : %U " > > > comment = "%U " > > > path = /files1/%g/%U > > > guest ok = no > > > read only = no > > > create mode = 740 > > > writable = yes > > > browseable = yes > > > > > > [deptshr] > > > comment = "%g Shared Directory" > > > comment = "%g Shared Directory" > > > path = /files1/%g/common > > > guest ok = yes > > > valid users = @smbuser > > > read only = no > > > create mask = 0770 > > > directory mask = 0770 > > > writable = yes > > > browseable = yes > > > > > > [usrdata] > > > path = /files1/test > > > browseable = yes > > > comment = Data Drive > > > volume = Sample-Data-Drive > > > writeable = yes > > > valid users = user1 > > > guest ok = no > > > > > > [public] > > > comment = " Common shared directory" > > > path = /files1/usrshare > > > valid users = @smbuser > > > browseable = yes > > > writeable = yes > > > create mode = 0777 > > > directory mode = 0777 > > > guest ok = yes > > > > > > [apps] > > > comment = apps folder > > > path = /files1/apps > > > browseable = yes > > > writeable = no > > > write list = @smbuser > > > > > > [printers] > > > comment = "Printers" > > > path = /tmp > > > printable = yes > > > create mask = 0700 > > > browseable = yes > > > public = yes > > > guest ok = yes > > > print ok = yes > > > # load printers = yes > > > > > > > > > [lasersys] > > > comment = systems laser printer > > > browseable = yes > > > printer = laser_sys > > > create mask = 0700 > > > printable = yes > > > guest ok = yes > > > printing = SYSV > > > print command = /bin/lp -c -d%p %s; rm %s > > > # print command = /bin/lp -c -dlaser_sys %s; rm %s > > > path = /tmp > > > > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: http://lists.samba.org/mailman/listinfo/samba
Please see my other post for commments about your logs. I can't write you directly because your mail server rejects my mail server (I run sendmail on my linux box), so I have to talk to you only via the samba list. It might be nice not to send logs in word format. They are a bit of a nuisance to reformat to plain text. They are also 4x as big. Save the planet. Conserve bandwidth! Geez. Sheltered mail servers. Word documents. What have I gotten myself into? Joel On Thu, Jan 16, 2003 at 02:19:09PM -0500, daulton theodore wrote:> Joel. I was not sure what to look for or send as a response so I have captured > sessions for user1 and user2 with the following steps: start daemon, login as > client (user1 and user2), poen Windows Explorer, locate the file, open the > file, print the file (Wordpad: File > Print), close the file, close explorer, > log off, kill the daemon processes. I am attaching the smbd and client log > files for each session. Hope this is not overkill. > Thanks for your help!
Hello folks, I'm having some problems when I use a shared printer. The printer is connected to a FreeBSD server with Samba 2.2.6pre2, when I send anything to to printer using a Windows NT 4 machine, the printer prints it nice, but it's impossible to cancel the printing. When I open the printer double-clicking on the printer icon in the system tray, I get a message: "Failed to open, trying again...". Could anybody help me?? Thanks in advance. -------------- next part -------------- HTML attachment scrubbed and removed
Hi, We have had a server crash and are now unable to print from the connected pc's I have installed samba 2.2.7a and use the sysv printing system The printers are configured using HP hppi>From the unix host I can send a print to the printerI have already checked the spool directory for the printers. and the spool directory that is used by the hppi daemon. They exist. In the user log file (/usr/local/var/%u.log) I have found a message telling that samba was unable to lock the printer database. Is there any way to solve this Peter Bruggink Manager mechanical Design +31 76 5792732 p.bruggink@steelweld.com Steelweld BV Terheijdenseweg 169 The Netherlands www.steelweld.com -------------------------------------------------------------------------------- DISCLAIMER The information transmitted is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed. If you received this in error, please contact the sender and delete the material from any computer. This mail has been checked for all known viruses by McAfee Virusscan.