[ale] Samba printers

John M. Mills jmills at TGA.com
Thu Dec 23 08:40:53 EST 1999


Chris -

> I need to print from my Linux box to a printer that is attached to a NT
> domain.  I must log into the domain in order to print.  Is it possible to do
> this using smbprint?

We have a WinNT net in our shop, and I am the only Linux [RH6.0] user. The
WinNT server exports its PostScript printer for all authorized
workstations. Our SysAdmin added my IP to the list of authorized users,
and I just put the printer in my /etc/printcap. (I presumably used RH
'printtool' to do it - maybe with a manual 'trim' after.) Since the
printer is PostScript, I didn't have to sort out the "'lp' doesn't run
'if' on remote printers" double-spooling trick.

I can ask precisely how the printer is shared and where my use is
authorized; I don't need any password for printing. The same server also
exports a shared disk for all NT workstations; I also mount that on my
Linux box, using 'smbclient', 'smbmount', ..., and I _do_ have to provide
my NT password to mount the NT-exported drive. Naturally my Win boxen also
provide that password to open that drive upon booting.

Here's my entire '/etc/printcap':
=-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-=

# /etc/printcap
#
# Please don't edit this file directly unless you know what you are doing!
# Be warned that the control-panel printtool requires a very strict format!
# Look at the printcap(5) man page for more info.
#
# This file can be edited with the printtool in the control-panel.

##PRINTTOOL3## REMOTE POSTSCRIPT 600x600 letter {} PostScript Default 1
lp|Xerox:\
	:sd=/var/spool/lpd/lp:\
	:mx#0:\
	:rm=<NT-host-IP-address>:\
	:rp=<NT-host-printer-name>:\
	:if=/var/spool/lpd/lp/filter:

=-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-==-=-=-=

Could hardly be simpler.

  John Mills, Sr. Software Engineer
  TGA Technologies, Inc.
  100 Pinnacle Way, Suite 140
  Norcross, GA 30071-3633
  e-mail: jmills at tga.com
  Phone: 770-441-2100 ext.124 (voice)
         770-449-7740 (FAX)

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.






More information about the Ale mailing list