Works fine in this run: [root@server2 samba]# cat /etc/hosts | /usr/bin/smbclient //desk1/HPOffice -U "root%password" -d 5 -c "print -" [2004/01/02 21:58:28, 5] lib/debug.c:debug_dump_status(359) INFO: Current debug levels: all: True/5 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 [2004/01/02 21:58:28, 3] param/loadparm.c:lp_load(3918) lp_load: refreshing parameters [2004/01/02 21:58:28, 3] param/loadparm.c:init_globals(1304) Initialising global parameters [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset UCS-2LE [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset UCS-2LE [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset UTF8 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset UTF8 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset ASCII [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset ASCII [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset 646 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset 646 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset ISO-8859-1 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset ISO-8859-1 [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(95) Attempting to register new charset UCS2-HEX [2004/01/02 21:58:28, 5] lib/iconv.c:smb_register_charset(103) Registered charset UCS2-HEX [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 3] param/params.c:pm_process(566) params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf" [2004/01/02 21:58:28, 3] param/loadparm.c:do_section(3421) Processing section "[global]" doing parameter workgroup = THOMASHOUSE doing parameter server string = Samba Server2 doing parameter netbios name = server2 [2004/01/02 21:58:28, 4] param/loadparm.c:handle_netbios_name(2708) handle_netbios_name: set global_myname to: SERVER2 doing parameter hosts allow = 192.168.100. 192.168.101. 192.168.102 127. doing parameter printcap name = /etc/printcap doing parameter load printers = yes doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 50 doing parameter security = user doing parameter encrypt passwords = yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* doing parameter username map = /etc/samba/smbusers doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 doing parameter remote announce = 192.168.100.255 192.168.101.255 192.168.102.255 doing parameter local master = yes doing parameter os level = 34 doing parameter domain master = yes doing parameter preferred master = yes doing parameter domain logons = yes doing parameter logon script = %U.bat doing parameter logon path = \\%L\profile\%U doing parameter logon home = \\%L\profile\%U doing parameter wins support = yes doing parameter dns proxy = no doing parameter deadtime = 30 doing parameter read size = 512 doing parameter max xmit = 17384 doing parameter locking = yes doing parameter time server = yes doing parameter nt acl support = Yes doing parameter profile acls = No doing parameter guest account = ntguests [2004/01/02 21:58:28, 4] param/loadparm.c:lp_load(3950) pm_process() returned Yes [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 5] lib/charcnv.c:charset_name(74) Substituting charset 'ISO-8859-15' for LOCALE [2004/01/02 21:58:28, 2] lib/interface.c:add_interface(79) added interface ip=68.193.153.48 bcast=68.193.159.255 nmask=255.255.240.0 [2004/01/02 21:58:28, 2] lib/interface.c:add_interface(79) added interface ip=192.168.100.2 bcast=192.168.100.255 nmask=255.255.255.0 [2004/01/02 21:58:28, 2] lib/interface.c:add_interface(79) added interface ip=192.168.101.7 bcast=192.168.101.255 nmask=255.255.255.0 [2004/01/02 21:58:28, 2] lib/interface.c:add_interface(79) added interface ip=192.168.75.1 bcast=192.168.75.255 nmask=255.255.255.0 [2004/01/02 21:58:28, 5] lib/util.c:init_names(270) Netbios name list:- my_netbios_names[0]="SERVER2" [2004/01/02 21:58:28, 3] client/client.c:main(2953) Client started (version 3.0.1). [2004/01/02 21:58:28, 5] lib/gencache.c:gencache_init(59) Opening cache file at /var/lib/samba/gencache.tdb [2004/01/02 21:58:28, 5] tdb/tdbutil.c:tdb_log(724) tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 lck_type=13: Resource temporarily unavailable [2004/01/02 21:58:28, 5] libsmb/namecache.c:namecache_fetch(195) no entry for desk1#20 found. [2004/01/02 21:58:28, 3] libsmb/namequery.c:resolve_lmhosts(850) resolve_lmhosts: Attempting lmhosts lookup for name desk1<0x20> [2004/01/02 21:58:28, 4] libsmb/namequery.c:getlmhostsent(598) getlmhostsent: lmhost entry: 127.0.0.1 localhost [2004/01/02 21:58:28, 3] libsmb/namequery.c:resolve_wins(748) resolve_wins: Attempting wins lookup for name desk1<0x20> [2004/01/02 21:58:28, 4] lib/wins_srv.c:wins_srv_is_dead(108) wins_srv_is_dead: 127.0.0.1 is alive [2004/01/02 21:58:28, 3] libsmb/namequery.c:resolve_wins(787) resolve_wins: using WINS server 127.0.0.1 and tag '*' [2004/01/02 21:58:28, 5] libsmb/nmblib.c:send_udp(743) Sending a packet of len 50 to (127.0.0.1) on port 137 [2004/01/02 21:58:28, 5] libsmb/nmblib.c:read_packet(721) Received a packet of len 56 from (127.0.0.1) port 137 [2004/01/02 21:58:28, 4] libsmb/nmblib.c:debug_nmb_packet(106) nmb packet from 127.0.0.1(137) header: id=31267 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=DESK1<20> rr_type=32 rr_class=1 ttl=0 [2004/01/02 21:58:28, 3] libsmb/namequery.c:name_query(432) Negative name query response, rcode 0x03: The name requested does not exist. [2004/01/02 21:58:28, 3] libsmb/namequery.c:resolve_hosts(944) resolve_hosts: Attempting host lookup for name desk1<0x20> [2004/01/02 21:58:28, 5] libsmb/namecache.c:namecache_store(130) namecache_store: storing 1 address for desk1#20: 192.168.101.197:0 [2004/01/02 21:58:28, 3] lib/util_sock.c:open_socket_out(706) Connecting to 192.168.101.197 at port 445 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_KEEPALIVE = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_REUSEADDR = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_BROADCAST = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option TCP_NODELAY = 1 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option IPTOS_LOWDELAY = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option IPTOS_THROUGHPUT = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDBUF = 16384 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVBUF = 16384 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDLOWAT = 1 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVLOWAT = 1 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_SNDTIMEO = 0 [2004/01/02 21:58:28, 5] lib/util_sock.c:print_socket_options(105) socket option SO_RCVTIMEO = 0 [2004/01/02 21:58:28, 4] client/client.c:do_connect(2562) session request ok [2004/01/02 21:58:28, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:28, 5] lib/util.c:show_msg(459) size=85 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]= 2563 (0xA03) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 17 (0x11) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]=64768 (0xFD00) smb_vwv[10]= 227 (0xE3) smb_vwv[11]=20608 (0x5080) smb_vwv[12]=55518 (0xD8DE) smb_vwv[13]=42357 (0xA575) smb_vwv[14]=50129 (0xC3D1) smb_vwv[15]=11265 (0x2C01) smb_vwv[16]= 1 (0x1) smb_bcc=16 [2004/01/02 21:58:28, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:28, 5] lib/util.c:show_msg(459) size=85 smb_com=0x72 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=0 smb_mid=1 smt_wct=17 smb_vwv[ 0]= 8 (0x8) smb_vwv[ 1]= 2563 (0xA03) smb_vwv[ 2]= 256 (0x100) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 17 (0x11) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 256 (0x100) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]=64768 (0xFD00) smb_vwv[10]= 227 (0xE3) smb_vwv[11]=20608 (0x5080) smb_vwv[12]=55518 (0xD8DE) smb_vwv[13]=42357 (0xA575) smb_vwv[14]=50129 (0xC3D1) smb_vwv[15]=11265 (0x2C01) smb_vwv[16]= 1 (0x1) smb_bcc=16 [2004/01/02 21:58:28, 4] lib/time.c:get_serverzone(122) Serverzone is 18000 [2004/01/02 21:58:28, 2] libsmb/cliconnect.c:cli_session_setup_spnego(665) Doing spnego session setup (blob length=16) [2004/01/02 21:58:28, 3] libsmb/cliconnect.c:cli_session_setup_spnego(669) server didn't supply a full spnego negprot [2004/01/02 21:58:28, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:28, 5] lib/util.c:show_msg(459) size=412 smb_com=0x73 smb_rcls=22 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=2048 smb_mid=2 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 412 (0x19C) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 295 (0x127) smb_bcc=369 [2004/01/02 21:58:28, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:28, 5] lib/util.c:show_msg(459) size=412 smb_com=0x73 smb_rcls=22 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=2048 smb_mid=2 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 412 (0x19C) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 295 (0x127) smb_bcc=369 [2004/01/02 21:58:28, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(833) Got challenge flags: [2004/01/02 21:58:28, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62) Got NTLMSSP neg_flags=0x60890215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_CHAL_TARGET_INFO NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH [2004/01/02 21:58:28, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(855) NTLMSSP: Set final flags: [2004/01/02 21:58:28, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62) Got NTLMSSP neg_flags=0x60080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH [2004/01/02 21:58:28, 5] libsmb/ntlmssp.c:ntlmssp_client_challenge(922) NTLMSSP challenge set by NTLM2 [2004/01/02 21:58:28, 5] libsmb/ntlmssp.c:ntlmssp_client_challenge(923) challenge is: [2004/01/02 21:58:28, 5] lib/util.c:dump_data(1830) [000] 3F BF C3 7E 70 D2 7A 36 ?¿Ã~pÒz6 [2004/01/02 21:58:28, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(295) NTLMSSP Sign/Seal - Initialising with flags: [2004/01/02 21:58:28, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62) Got NTLMSSP neg_flags=0x60080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=126 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=2048 smb_mid=3 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 126 (0x7E) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 9 (0x9) smb_bcc=83 [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=126 smb_com=0x73 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=0 smb_pid=2288 smb_uid=2048 smb_mid=3 smt_wct=4 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 126 (0x7E) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 9 (0x9) smb_bcc=83 [2004/01/02 21:58:29, 1] client/client.c:do_connect(2596) Domain=[THOMASHOUSE] OS=[Windows 5.0] Server=[Windows 5.0] [2004/01/02 21:58:29, 4] client/client.c:do_connect(2603) session setup ok [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=50 smb_com=0x75 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=2288 smb_uid=2048 smb_mid=4 smt_wct=3 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 50 (0x32) smb_vwv[ 2]= 1 (0x1) smb_bcc=9 [2004/01/02 21:58:29, 4] client/client.c:do_connect(2612) tconx ok [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=65 smb_com=0x2d smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=2288 smb_uid=2048 smb_mid=5 smt_wct=15 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 65 (0x41) smb_vwv[ 2]=16384 (0x4000) smb_vwv[ 3]= 0 (0x0) smb_vwv[ 4]= 0 (0x0) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 0 (0x0) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]= 0 (0x0) smb_vwv[10]= 0 (0x0) smb_vwv[11]= 2 (0x2) smb_vwv[12]= 0 (0x0) smb_vwv[13]= 0 (0x0) smb_vwv[14]= 0 (0x0) smb_bcc=0 [2004/01/02 21:58:29, 1] client/client.c:do_put(1107) putting file - as stdin-2288 size=235 smb_com=0x2f smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=8 smb_flg2=51201 smb_tid=2048 smb_pid=2288 smb_uid=2048 smb_mid=6 smt_wct=12 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 0 (0x0) smb_vwv[ 2]=16384 (0x4000) smb_vwv[ 3]= 0 (0x0) smb_vwv[ 4]= 0 (0x0) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 0 (0x0) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]= 0 (0x0) smb_vwv[10]= 176 (0xB0) smb_vwv[11]= 59 (0x3B) smb_bcc=176 [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=47 smb_com=0x2f smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=2288 smb_uid=2048 smb_mid=6 smt_wct=6 smb_vwv[ 0]= 255 (0xFF) smb_vwv[ 1]= 47 (0x2F) smb_vwv[ 2]= 176 (0xB0) smb_vwv[ 3]=65535 (0xFFFF) smb_vwv[ 4]= 0 (0x0) smb_vwv[ 5]= 0 (0x0) smb_bcc=0 [2004/01/02 21:58:29, 5] lib/util.c:show_msg(456) [2004/01/02 21:58:29, 5] lib/util.c:show_msg(459) size=35 smb_com=0x4 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51201 smb_tid=2048 smb_pid=2288 smb_uid=2048 smb_mid=7 smt_wct=0 smb_bcc=0 [2004/01/02 21:58:29, 1] client/client.c:do_put(1164) (2.5 kb/s) (average 2.5 kb/s)