Printing in TNG

Steve Litt slitt at troubleshooters.com
Mon Feb 21 18:19:55 GMT 2000


Inge,

What you describe is the as-designed performance of Samba as configured by
the Red Hat distro. With Red Hat, you need to hard code printing, print
command, and any other commands you regularly use (lprm command, for
instance). You'll also need to change the printcap name= to /etc/printcap.
If you get a SWAT problem mentioning lpstat, the printcap name= change will
fix it.

As an alternative, I download the Samba 2.0.x .tgz and compile and make.
I've found that to yield a better setup, and it doesn't default to sysv
printing.

Steve Litt

At 03:50 AM 02/22/2000 +1100, Inge-Håvard Hunstad wrote:
>When I try to change printing system from the default "sysv" to "bsd" in
>smb.conf the printing commands doesn't seem to change. When I run
>testparm after changing the "printing" parameter it looks like this:
>
>        print ok = No
>        postscript = No
>        printing = bsd
>        print command = lp -c -d%p %s; rm %s
>        lpq command = lpstat -o%p
>        lprm command = cancel %p-%j
>        lppause command = lp -i %p-%j -H hold
>        lpresume command = lp -i %p-%j -H resume
>        queuepause command = lpc stop %p
>        queueresume command = lpc start %p
>        printer name =
>        printer driver = NULL
>        printer driver location =
>
>At least I didn't know that BSD printing used lp and lpstat so I think
>there is an error somewhere. 
>
>Thanks for all help.
>
>inge
>
>
>smb.conf global section:
>
>#======================= Global Settings
>=====================================
>[global]
>ldap suffix = "ou=People,dc=student,dc=uit,dc=no"
>ldap bind as = "uid=manager,dc=student,dc=uit,dc=no"
>ldap passwd file = /opt/samba-tng/private/ldappasswd 
>ldap server = localhost 
>ldap port = 389 
>workgroup = LDAP
>netbios name = <Netbios name>
>server string = <Netbios name> Samba %v
>hosts allow = XXX.XXX.X. XXX.XXX.XX. 127.
>printcap name = /etc/printcap
>load printers = yes
>printing = BSD
>log level = 0
>log file = /opt/samba-tng/var/log.%m
>max log size = 5000
>security = user
>null passwords = No
>encrypt passwords = yes
>local master = Yes
>os level = 65 
>domain master = yes 
>preferred master = yes
>domain logons = yes
>name resolve order = wins lmhosts bcast
>logon path = \\<Netbios name>\Profiles\users.man
>logon home = \\<Netbios name>\%U
>logon drive = H:
>Wins server = XXX.XXX.XX.XX
>Dns Proxy = No
>interfaces = XXX.XXX.XXX.XXX/24
>
>
>
>-- 
>Inge-Håvard Hunstad
>email: 	inge at cc.uit.no
>Tlf:   	77646527
>(intern nr. UiT: 6527)
>



More information about the samba-ntdom mailing list