Koozali.org: home of the SME Server

Managing printing

Des Dougan

Managing printing
« on: August 08, 2002, 03:19:59 AM »
I think I probably knoe the answer to this, but confirmation would be helpful...

When spooling to a network printer from W2K, the job does not show in the printer window - I assume because it spools directly to the network (in my case, a printer attached to the server's parallel port).

However, the same print job, spooled from W2K,  does display on a Win 98 workstation, although the user on that station cannot do anything with it, such as purge it when required.

Are there any mechanisms to enable the printer spool for a system to be managed by a normal user on that system (i.e. a non-admin), or failing that, by someone with admin rights? It's very frustrating for a client of mine when their DeskJet hangs and they have to wait for the person with the server admin password to come and fix it.

Thanks,

Des Dougan

Gene Cooper

Re: Managing printing
« Reply #1 on: August 09, 2002, 09:38:13 PM »
This has been an issue for a long time.  

Using Windows NT or 2K servers, the users ARE able to view and control the queues.

I, too, would love to find a solution.  

Thanks in advance to anyone with a plan.

G

Jeff Coleman

Re: Managing printing
« Reply #2 on: August 11, 2002, 04:22:07 AM »
Correct me if I'm wrong, but can't an admin group user do the queue maintenance on there shared printer workstation?

If you give the user local admin rights they still can't access the queues?

-jeff

Des Dougan

Re: Managing printing
« Reply #3 on: August 11, 2002, 06:24:21 AM »
Jeff,

I just tested your suggestion, as I hadn't considered that before. I spooled a doc from my PC, but stopped it printing (I removed the paper tray). I then logged on as admin on another PC and tried to cancel th job, but it didn't disappear until I re-inserted the tray, whereupon it printed...

Using Linux commands seems at this point to be the only option, either from the command line, or from the server manager using Jaime Nebrera's hack.

Des Dougan

Jurgen heine

Re: Managing printing
« Reply #4 on: November 07, 2002, 05:57:07 PM »
I had the same problem and I have done the following:
( it works for me on a SME 5.5 with a win XP client):

Login on command prompt( ALT F2) as root.

Make a new dir.
mkdir etc/e-smith/templates-custom/etc/smb.conf

Copy the file /etc/e-smith/templates/etc/smb.conf/20printing to the new dir:
cp /etc/e-smith/templates/etc/smb.conf/20printing
/etc/e-smith/templates-custom/etc/smb.conf

Start midnight commander (mc).
Go To the file:
/etc/e-smith/templates-custom/etc/smb.conf/20printing

Press F4 to edit the file.
Change the line:
print command= /usr/bin/lpr -b -r -h -P%p %s
in
print command= /usr/bin/lpr -b -r -h -J'%J' -P%p %s

(-J' %J' makes that you can see the original filename in printerqueue)

Add the following commands after the print command=......

lpq command= /usr/bin/lpq -P%p (gives jobs in printqueue)
lprm command= /usr/bin/lprm -P%p %j (for removing printjobs)

You can also add the following commands:
(needs adjusting lpd.perms file)

lppause command= /usr/bin/lpc hold %p %j (stops printing document)
lpresume command= /usr/bin/lpc release %p %j (restarts printing document)
queuepause command= /usr/bin/lpc -P%p stop (stops queue)
queueresume command= /usr/bin/lpc -P%p start (starts queue)

Save file ( F2) and exit mc ( 2x F10)

Update template:
/sbin/e-smith/expand-template /etc/smb.conf

Restart Samba:
service smb restart

The Users can now see there own printjobs and remove them.

I hope that this is what you want,

Jurgen.