[Samba] print command, cups, lprng, bsd

Greg Saunders greg at lnxinc.com
Wed Jun 16 19:29:23 GMT 2004


Good day.

I have a strange problem changing the "print command" from the smb.conf 
file with different print spooling subsystems specified in the conf
file.

samba 3.0.4
cups 1.1.20
fedora core 2

If the "printing" option is set to "cups" the "print command" is not 
executed. If the "printing" option is set to "lprng" or "bsd" the "print
command" is executed. Also the "job name" (%J) changes

Example:

printing = cups
Job name example: smbprn.00000048 Remote Downlevel Document

printing = lprng
Job name example: smbprn.00000047.6CpzDO

on another print server (the only difference fedor core 1 instaed of 2)

printing = cups
Job name example: smbprn.00000048 EIS mapping specs.xls

Now, this "Remote Downlevel Document" has always driven me crazy and I 
don't understand why the job name comes across ok on the one server and 
not the other (EIS mapping specs.xls).

Thanks

Greg



[global]
        workgroup = LNX
        server string = Samba Server
        username map = /etc/samba/smbusers
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        logon script = logon.cmd
        logon path = \\%N\profiles\%u
        logon home = \\homeserver\%u\winprofile
        os level = 33
        dns proxy = No
        ldap ssl = no
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        printing = cups
        printcap name = cups

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[print$]
        path = /etc/samba/print
        read only = No
        guest ok = Yes

[netlogon]
        path = /var/lib/samba/netlogon
        write list = ntadmin

[profiles]
        path = /var/lib/samba/profiles
        read only = No
        create mask = 0600
        directory mask = 0700

[cdrom]
        path = /mnt/cdrom

[data]
        path = /home/data
        read only = No

[ricoh3800]
        comment = Local Raw Printer
        path = /var/spool/samba
        print command = /usr/local/bin/printaccountserver.py '%f' '%p' 
'%m' '%I' '%U' '%u' '%s' '%J' '%z' '%a' &
        read only = No
        printable = Yes




More information about the samba mailing list