Hi all! I can't make my Samba server to print. I try do it in different way. This is last: /etc/printcap: lp|inkjet: \ :lp=/dev/lp1: \ :sd=/var/spool/lpd/lp: \ :if=/usr/local/bin/lpfilter: \ :mx#0: \ :sh raw: \ :rw:sh: \ :lp=/dev/lp1: \ :sd=/var/spool/lpd/raw: \ :fx=flp /usr/local/samba/lib/smb.conf: [global] workgroup = SMGRP username map = /usr/local/samba/lib/users.map security = share debug level = 3 printing = bsd printcap name = /etc/printcap load printers = yes [lp] comment = System Printer path = /var/spool/lpd printable = yes public = yes writable = no print command = /usr/bin/lpr -b -P%p %s lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j create mode = 0700 [raw] comment = Raw Device path = /var/spool/lpd printable = yes public = yes writable = no print command = /usr/bin/lpr -b -P%p %s lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j create mode = 0700 next some shares, run well Well, then I try to install network printer on my NT4 client, try Print Test Page from printer roperties window and get "Error writing to \\lx1\raw. Access denied." /usr/local/samba/var/log.smb: [1999/01/22 15:46:40, 3] smbd/process.c:process_smb(565) Transaction 48 of length 115 [1999/01/22 15:46:40, 3] smbd/process.c:switch_message(402) switch message SMBtrans (pid 9570) [1999/01/22 15:46:40, 3] smbd/ipc.c:reply_trans(3621) trans <\PIPE\LANMAN> data=0 params=31 setup=0 [1999/01/22 15:46:40, 3] smbd/ipc.c:named_pipe(3476) named pipe command on <LANMAN> name [1999/01/22 15:46:40, 3] smbd/ipc.c:api_reply(3421) Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl> (tdscnt=0,tpscnt=31,mdrcnt =1024,mprcnt=6) [1999/01/22 15:46:40, 3] smbd/ipc.c:api_reply(3426) Doing DosPrintQGetInfo [1999/01/22 15:46:40, 3] smbd/ipc.c:api_DosPrintQGetInfo(815) What's wrong? Thank you. Sincerely, Oleg PrintQueue uLevel=3 name=raw [1999/01/22 15:46:40, 3] printing/printing.c:get_printqueue(1007) Running the command `/usr/bin/lpq -Praw' gave 0
I want to thank all of you for your help. I figured out how to edit /etc/printcap to set up a local printer. I then modified my smb.conf file to set up the share. Now, I want to improve on performance. I am sending a Microsoft Access 10 Page report from from an HP - Jet Direct Print Server. On 4 tries, the average time for the job to finish is 60 seconds. Sending the same job through my Samba Print Server averages 75 seconds. I tried to speed things up by adding the appropriate ip addresses to /etc hosts. I also tried changing the :br param to 468000 from 57000. These didn't seem to help. The problem seems to be the spooling. When I print from the Jet Direct Print Server, the job has taken, at the least 7 seconds to get to the printer, and at the most 20 seconds. When I print fromthe Samba Server however, it usually takes at least 30 seconds just to get to the printer. What can I do to speed this up. Thanks again! Mark Penkower
Is it possible to create a linux samba based print server to be used by Windows 98, 2000, and XP home edition? I've successfully create a linux samba based file server, but I have not been able to get the print server functional. My printers are an HP4L (laserjet) and an HP882C (deskjet). I'm using Red Hat 7.2 and installed samba 2.2.7a My print shares use the load default process and I use user level security. The users can get to the home drives but printers just don't work. The users are able to print locally. I tried accessing from another linux machine via samba and it was unsuccessful. [2003/02/17 19:23:04, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798) call_nt_transact_ioctl: Currently not implemented. [2003/02/17 18:12:10, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798) call_nt_transact_ioctl: Currently not implemented. [2003/02/17 18:29:45, 0] smbd/service.c:make_connection(238) playit (192.168.0.53) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d} [2003/02/17 18:57:40, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798) call_nt_transact_ioctl: Currently not implemented. [2003/02/17 19:11:28, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798) call_nt_transact_ioctl: Currently not implemented. [2003/02/17 22:24:50, 0] rpc_server/srv_spoolss_nt.c:_spoolss_fcpn(4663) _spoolss_fcpn: Invalid handle (OTHER) [2003/02/17 22:24:50, 0] rpc_server/srv_spoolss_nt.c:close_printer_handle(257) close_printer_handle: Invalid handle (OTHER) [2003/02/17 22:44:59, 0] lib/util_sock.c:read_socket_data(478) read_socket_data: recv failure for 4. Error = No route to host I have only spent about 300 hours on linux, so I'm a newbie. any help would be appreciated.
I rember awhile back someone mention there was a limitiation about 50 printers for samba. Does this still hold true or was it my imagination. tia -- Joseph Loo jloo@acm.org
On Tue, 11 Mar 2003, Joseph Loo wrote:> I rember awhile back someone mention there was a limitiation about 50 > printers for samba. Does this still hold true or was it my imagination.I guess your imagination - I am sure someone will correct me if I am wrong! I had a site that had well over 100 on one server in the days of samba-2.0.7. - John T. -- John H Terpstra Email: jht@samba.org
Not to try and break any records, but we have servers that each serve up ~1500 printers under 2.0.X. Needless to say, attempts to upgrade to 2.2 resulted in some difficulty (servers coming nearly instantly to their knees as dozens of Windows boxes attempted to initiate RPC, etc.). But performance under 2.0.X is actually not at all bad. Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation On Wed, 12 Mar 2003, John H Terpstra wrote:> Date: Wed, 12 Mar 2003 04:22:33 +0000 (GMT) > From: John H Terpstra <jht@samba.org> > To: Joseph Loo <jloo@acm.org> > Cc: samba <samba@lists.samba.org> > Subject: Re: [Samba] Samba Print server > > On Tue, 11 Mar 2003, Joseph Loo wrote: > > > I rember awhile back someone mention there was a limitiation about 50 > > printers for samba. Does this still hold true or was it my imagination. > > I guess your imagination - I am sure someone will correct me if I am > wrong! > > I had a site that had well over 100 on one server in the days of > samba-2.0.7. > > - John T. > -- > John H Terpstra > Email: jht@samba.org > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hiya, Can someone explain why I am seeing chmod of W32X86/3/PSCRIPT5.DLL failed (Operation not permitted) in the log files. It is a samba 3.0.1pre3 print server, which has the drivers on it for loading to the clients. Here is the log file of errors. Thanx in advanced Kris [2003/11/27 16:29:15, 2] smbd/open.c:open_file(250) aclarke opened file W32X86/3/PSCRIPT.HLP read=Yes write=No (numopen=4) [2003/11/27 16:29:15, 2] smbd/close.c:close_normal_file(228) aclarke closed file W32X86/3/PSCRIPT.HLP (numopen=3) [2003/11/27 16:29:15, 2] smbd/open.c:open_file(250) aclarke opened file W32X86/3/PSCRIPT.HLP read=Yes write=No (numopen=4) [2003/11/27 16:29:15, 2] smbd/open.c:open_file(250) aclarke opened file W32X86/3/PSCRIPT.NTF read=Yes write=No (numopen=5) [2003/11/27 16:29:15, 2] smbd/close.c:close_normal_file(228) aclarke closed file W32X86/3/PSCRIPT.NTF (numopen=4) [2003/11/27 16:29:15, 2] smbd/open.c:open_file(250) aclarke opened file W32X86/3/PSCRIPT.NTF read=Yes write=No (numopen=5) [2003/11/27 16:29:15, 2] smbd/open.c:open_file(250) aclarke opened file W32X86/3/PSCRIPT5.DLL read=Yes write=No (numopen=6) [2003/11/27 16:29:15, 2] smbd/trans2.c:call_trans2setfilepathinfo(3105) chmod of W32X86/3/PSCRIPT5.DLL failed (Operation not permitted) [2003/11/27 16:29:15, 2] smbd/close.c:close_normal_file(228) aclarke closed file W32X86/3/PSCRIPT5.DLL (numopen=5)
Apparently Analagous Threads
- Installing windows drivers into print$ on OS X 10.5 Leopard
- cupsaddsmb error: cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received
- cups automatic driver install (WERR_ACCESS_DENIED)
- add x64 printer drivers with cupsaddsmb fail
- cupsaddsmb not working after upgrade to Lenny (rpcclient -> WERR_INVALID_PARAM)