[Samba] SAMBA 2.2.3a <-> LPRng 3.8.x

christoph.beyer at desy.de christoph.beyer at desy.de
Fri Feb 15 05:40:04 GMT 2002

hi you all,

I had this problem for a long time and with different versions of SAMBA
and LPRng:

using '/usr/spool/lp/bin/lpr -r -Fl -m%m -J"%J" -U%U -P%p %s'
as 'print command' results in two jobs in the queue window on the NT box,
though there is only one job in the unix queue.

using '/usr/spool/lp/bin/lpr -r -Fl -m%m -U%U -P%p %s'
works fine, but delete requests often (not always) don't succeed, the job
in the queue window just gets renamed, from it's original name to the name
in the unix queue.

Is there a little problem in the internal name mapping ?

my smb.conf file:

        workgroup = DESYNT
        netbios name = DESYNTPRINTA
        security = SERVER
        encrypt passwords = Yes
        password server = %m
        printcap name = /usr/spool/lp/etc/printcap.smb
        wins server =
        remote announce =
        remote browse sync =
        admin users = lp
        printer admin = lp
        guest ok = YES
        printing = lprng
        map to guest = Bad Password
        print command = /usr/spool/lp/bin/lpr -r -Fl -m%m -U%U -P%p %s
        lpq command = /usr/spool/lp/bin/samba/%u/lpq -P%p
#       lpq command = /usr/spool/lp/bin/lpq -P%p
        lprm command = /usr/spool/lp/bin/lprm -U%U -P%p %j
        username map = /usr/spool/lp/etc/smbusers.map
        deadtime = 1

        path = /usr/spool/samba/printers
        write list = lp
        read only = Yes
        guest ok = Yes
        browseable = Yes

        path = /tmp
        printable = Yes
        guest ok = Yes
        browseable = Yes

[printsrv2] /usr/spool/samba $ cat ~lp/etc/smbusers.map
!lp = lp
nobody = *

kind regards

More information about the samba mailing list