Printing in Samba 2.2.X

olaf slazak løken osl at fast.no
Thu Oct 25 02:14:03 GMT 2001


There have been a lot of Q about printing in Samba 2.2.2
Here a my settings for printing in a NT 4 domain.
I use Windows AWK to modify and install drivers for NT4 and Windows 2000 
and XP. It works.. (Thanks Samba Team ! )

smb.conf

[global]
    workgroup = XXXX
    netbios name = XXXX
    server string = Print Server for Fast Oslo
    hosts allow = 192.168. 127.
    load printers = yes
    log file = /var/log/samba/log.%m
    max log size = 50
    debug level = 0
    security = domain
    password server = * ( if you use windbind )
    encrypt passwords = no
    socket options = TCP_NODELAY
    local master = no
    wins server = 192.168.1.xxxx
    dns proxy = no
    client code page=850

    include = /etc/samba/smb.conf.%h



smb.conf.xxxxx

[global]
    interfaces = 192.168.0.118/21
    printer admin = @ntadmin (user allowed to modify and install drivers 
on Samba server)
    printing = cups

#============================ Share Definitions 
==============================

[homes]
    comment = Home Directories
    browseable = no
    writeable = yes

[print$]
    path = /var/spool/samba/printers
    show add printer wizard = yes
    write list = @ntadmin,osl
    browseable = yes
    read only = yes

[printers]
    comment = All Printers
    path = /var/spool/samba
#  guest ok = Yes ( if you want to use banner with nt-user name don't 
use guest user.)
    printable = Yes
    write list = @ntadmin
    print command = /usr/bin/lp -d%p -oraw %s; rm %s
    lpq command = /usr/bin/lpstat -o%p
    lprm command = /usr/bin/cancel %p-%j
    queuepause command = /usr/bin/disable %p
    queueresume command = /usr/bin/enable %p


===========================================================>

If you have any Q please send me a mail and I try to help as best as I can.
-- 
-- 
Olaf S Løken 			Mail: Olaf.S.Loken at fast.no
Senior System Administrator 	Web: http://www.fastsearch.com/
Fast Search & Transfer ASA	Phone: +47 23 01 12 49
P.O. Box 1677 Vika 		Fax: +47 23 01 12 01
NO-0120 Oslo, NORWAY 		Mob: +47 48 01 12 49

Try FAST Search: http://alltheweb.com






More information about the samba-ntdom mailing list