Frans wrote> Did you receive any useful tips in the mean time?No, there was a greate silence.> > For one of our supported organisations I'm investigating a not able to remove print > jobs, as wellOh, I'm not alone.> So I hope you would like to share the tips, in return I could try to be of assitance> as well.Nice, I have additional questions to solve the problem: are there possibilities to trace the lprm command passing from NT-->Samba-->Unix? and with wich user the lprm command will be performed on the Unix-box? I hope that their will be some more responses. Michael P.S. My last posting> > > we have Samba 2.0.4b on Solaris 7 with NT4-Clients Sp4/5, the same > > happens with 2.0.5a on Solaris 2.6 > > We want to manage Printjobs from the NT-Clients and defined the > > commands lpq and lprm. The print queues are located on the Unix-box. > > Every user can see the printjobs by doubleclicking on the network > > printer symbol. > > The name of the printjob in the queue is not the real name, you see, if > > you are logged on the unix machine. On the NT machine you see instead > > the username. Canceling the printjob on the NT machine does nothing. > > Does NT try to cancel a job, named with the username?? > > Performing the the cancel command defined in smb.conf on the unix > > machine works without problems. > > > > Canceling printjobs worked on solaris 2.6 until I applied the latest > > lp-patch. On Solaris 7 it worked never. > > > > Parameters in smb.conf: > > [global] > > printing = sysv > > printcap name = /opt/samba/printcap > > print command = echo Printing %s >> /u07/printtmp/print.log; lp -o > > nobanner -d %p %s > > lpq command = lpstat -o%p > > lprm command = cancel %p-%j > > load printers = yes > > socket options = TCP_NODELAY > > dead time = 60 > > getwd cache = yes > > lock directory = /var/opt/samba/locks > > share modes = yes > > > > [HP-5N-Market] > > comment = HP-5N-Marketing > > browseable = yes > > printable = yes > > printer = HP5N_MARK > > printer driver = HP Laserjet 5N > > path = /u07/printtmp > > public = yes > > writeable = no > > create mode = 0700-- G.C. HAHN & Co. Coordinationsges. mbH Aegidienstrasse 22 23552 L?beck Germany Tel: 0049 451 1604-157 Fax: 0049 451 1604-250 email: mk@hahn-co.de
Michael Koehler wrote:> > So I hope you would like to share the tips, in return I could try to be of assitance > > as well. > > Nice, > I have additional questions to solve the problem: > are there possibilities to trace the lprm command passing from NT-->Samba-->Unix? > and with wich user the lprm command will be performed on the Unix-box?Well, to find out what stuff is passed on I use sometimes the next line, which you can add in the smb.conf to your [HP-5N-Market] entry: root preexec = echo "U-%U G-%G M-%M I-%I m-%m a-%a t-%T h-%H p-%P s-%S u-%u g-%g" >> /tmp/prexec.log actually you can just also run a script in which you just grab whatever you like to know is going on, like 'id', 'pwd' etc. root preexec = /usr/local/samba/scripts/preinfo.ksh [ <parameters> ] (if you like, of course you can add parameters, like %U %I %m) I hope this is what you mean?> > I hope that their will be some more responses.Yah, that's a bit of a problem nowadays- not just in this group. I reckon there are to many questions and to little answers;-) -- Kind Regards / Vriendelijke Groeten, Frans Stekelenburg, gjs@acriter.com Acriter, Intranet Facility Services (IFS) Postbus 320, 3990 GC Houten, the Netherlands * Bezoek/Visit: Kokermolen 6, 3994 DH Phone: +31 (0)30 6344010 Fax: 6444011 * For Information: info@acriter.com
At 08:10 PM 10/07/1999 +1000, Frans Stekelenburg wrote:>Michael Koehler wrote: > >> > So I hope you would like to share the tips, in return I could try tobe of assitance>> > as well. >> >> Nice, >> I have additional questions to solve the problem: >> are there possibilities to trace the lprm command passing fromNT-->Samba-->Unix?>> and with wich user the lprm command will be performed on the Unix-box? >You can find out your lprm command like this: testparm | grep -i lprm To verify that testparm is being accurate, you can hardcode that into your smb.conf like this: lprm command = cancel %p-%j Then, to insert a testpoint to determine the effective user, do this: lprm command = echo "U=%U, G=%G, u=%u, g=%g" > lprmtest.txt Start a big print job from Windows, then cancel it. I believe that should do it. Steve Litt