[Samba] printing to windows with cups

Andrzej Kosmala kosmal at poczta.onet.pl
Mon Aug 5 04:20:03 GMT 2002

I have samba 2.2.5 and cups -1.1.15 from rpm packages on RH 7.3. I try 
to configure printers by localhost:631 and haven't smb device.
ldd 'which smbd' gives:
libcups.so.2 => /usr/lib/libcups.so.2 (0x40013000)
    libssl.so.2 => /lib/libssl.so.2 (0x40045000)
    libcrypto.so.2 => /lib/libcrypto.so.2 (0x40072000)
    libnsl.so.1 => /lib/libnsl.so.1 (0x40135000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x40149000)
    libpam.so.0 => /lib/libpam.so.0 (0x40176000)
    libpopt.so.0 => /usr/lib/libpopt.so.0 (0x4017e000)
    libc.so.6 => /lib/libc.so.6 (0x40186000)
    libdl.so.2 => /lib/libdl.so.2 (0x402ad000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
then ok.
lpinfo -v gives:
network socket
network http
network ipp
network lpd
direct parallel:/dev/lp0
direct scsi
serial serial:/dev/ttyS0?baud=115200
serial serial:/dev/ttyS1?baud=115200
serial serial:/dev/ttyS2?baud=115200
serial serial:/dev/ttyS3?baud=115200
serial serial:/dev/ttyS4?baud=115200
serial serial:/dev/ttyS5?baud=115200
serial serial:/dev/ttyS6?baud=115200
serial serial:/dev/ttyS29?baud=115200
serial serial:/dev/ttyS30?baud=115200
serial serial:/dev/ttyS31?baud=115200
direct usb:/dev/usb/lp0
direct usb:/dev/usb/lp1
direct usb:/dev/usb/lp2
no network smb - bad
My smb.conf:
        workgroup = ZGK.LUBARTOW.PL
    server string = moonlight %v
    encrypt passwords = Yes
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
    unix password sync = Yes
    log file = /var/log/samba/%m.log
    max log size = 0
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    printcap name = cups
    local master = No
    dns proxy = No
    printing = cups

        comment = Home Directories
    valid users = %S
    read only = No
    create mask = 0664
    directory mask = 0775
    browseable = No

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

[Moje dokumenty]
    path = /mnt/w98/Moje\ dokumenty
    fstype = Samba
smbclient -L lists shared printers on windows machines.
How can I print on them?
Andrzej Kosmala

More information about the samba mailing list