Имеем:
Samba version 3.0.2-Debian
smb.conf:
Код: Выделить всё
load printers = yes
printing = lprng
printcap name = /etc/printcap
[printers]
comment = All Printers
browseable = yes
path = /tmp
printable = yes
public = yes
writable = yes
create mode = 0700
Код: Выделить всё
smbclient -L //mypc
Domain=[DOMAIN] OS=[Unix] Server=[Samba 3.0.2-Debian]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (mypc server (Samba 3.0.2-Debian))
ADMIN$ IPC IPC Service (mypc server (Samba 3.0.2-Debian))
hplj1100 Printer HP Laserjet 1100
Код: Выделить всё
smbclient -U zyxel -W domain //mypc/hplj1100
smb>print file.txt
putting file file.txt as file.txt (13.3 kb/s) (average 13.3 kb/s)
Далее, товарищ патается добавить мой принтер себе в win2k pro -- нифига
log:
Код: Выделить всё
[2004/03/04 14:27:58, 0] lib/util_sock.c:get_peer_addr(952)
getpeername failed. Error was Transport endpoint is not connected
[2004/03/04 14:27:58, 0] lib/util_sock.c:write_socket_data(388)
write_socket_data: write failure. Error = Connection reset by peer
[2004/03/04 14:27:58, 0] lib/util_sock.c:write_socket(413)
write_socket: Error writing 4 bytes to socket 16: ERRNO = Connection reset by peer
[2004/03/04 14:27:58, 0] lib/util_sock.c:send_smb(605)
Error writing 4 bytes to client. -1. (Connection reset by peer)