Write the following in the global section if you use
lpd:
printing = lprng
And all the lp* command parameters in smb.conf start
to work properly.
Look at the commands I have, they works perfect for
me:
## To print
print command = /usr/bin/lpr -P %p %s rm %s
## To query the queue
lpq command = /usr/bin/lpq -P %p
## To remove jobs in the queue
lprm command = /usr/bin/lprm -P %p %j
## To pause a print job
lppause command = /usr/sbin/lpc hold %p %j
## To resume a print job paused
lpresume command = /usr/sbin/lpc release %p %j
Also it's important that you check the file
/etc/lpd.perms. My file has the following:
## You can make sure that connections come from a
privileged port.
## Default is to allow them from any port so that
non-setuid programs
# can do printing.
# Totally RFC1179
#REJECT SERVICE=X NOT PORT=1-1023
#REJECT SERVICE=X NOT PORT=1-1023
# Privileged
#REJECT SERVICE=X NOT PORT=721-731
#
# allow root on server to control jobs
ACCEPT SERVICE=C SERVER REMOTEUSER=root
# allow anybody to get server, status, and printcap
ACCEPT SERVICE=C LPC=lpd,status,printcap
# reject all others
##REJECT SERVICE=C
#
# allow same user on originating host to remove a job
ACCEPT SERVICE=M SAMEHOST SAMEUSER
# allow root on server to remove a job
ACCEPT SERVICE=M SERVER REMOTEUSER=root
REJECT SERVICE=M
# all other operations allowed
DEFAULT ACCEPT
I hope all of this help you. Cheers,
Fernando.
--- Nick [EMAIL PROTECTED] escribió: I did
not have the printer admin = @users (users is
the group all my
users are in) line in my smb.conf. I can now see the
jobs that are
queued but non of my commands work here except the
print and maybe the
lpq command. Also anyone know how to say pause and
resume to lpd?
Here is my configuration:
[global]
print admin = @users
# shares
[HP_LaserJet_4000]
comment = Main Printer
path = /var/spool/lpd/HP_LaserJet_4000
guest ok = yes
public = yes
printer = HP_LaserJet_4000
;printing = bsd
printable = yes
browsable = yes
print command = /usr/bin/lpr -P%p %s rm %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
[HP_LaserJet_6P]
comment = Front Desk Printer
path = /var/spool/lpd/HP_LaserJet_6P
guest ok = yes
public = yes
printer = HP_LaserJet_6P
;printing = bsd
printable = yes
browsable = yes
print command = /usr/bin/lpr -P%p %s rm %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
Any advice would be greatly appreciated :)
Nick wrote:
Hi,
Is it possible to manage print queue's via windows
clients. I get
Access denied, unable to connect. I use the lp
daemon to print via
JetDirect. I am beginning to think it is not
possible. If someone out
there is doing this could you please share your
configurations with us
so it can be added to the samba How-to
documentation.
Respectfully,
Nick
--
To unsubscribe from this list go to the following
URL and read the
instructions:
http://lists.samba.org/mailman/listinfo/samba
=
Fernando Ruza Rodríguez
[EMAIL PROTECTED]
___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis!
Descárgalo ya desde http://messenger.yahoo.es
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba