./smbd -i -d 10 -i Interactive mode -d 10 Debug level 10 I am trying to understand the handshaking mechnism indetail between samaba client and server so i was trying with interactive mode and debug mode. but smbd crashed after some time or when credentials username/password is supplied to access the share. Log messages seen are : run_events: No events read_data: read of 4 returned 0. Error = Success receive_smb_raw: length < 0! timeout_processing: End of file from client (client has disconnected). Closing cache file namecache_shutdown: netbios namecache closed successfully.
smbd didn't crash. The client disconnected. timeout_processing: End of file from client (client has disconnected). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Its crashed, Please find the messages after the server has crashed. [root@ProtocolStacks sbin]# ./smbd -i -d 10 > /root/UML/samba-3.0.22/TESTING/TRACES/INTERACTIVE/ipadd_auth_logon/smbd_i_d_10 talloc report on 'null_context' (total 2827 bytes in 76 blocks) struct service_control_op contains 77 bytes in 5 blocks SORTED_TREE contains 527 bytes in 44 blocks pdb_context internal allocation context contains 1647 bytes in 7 blocks passdb internal SAM_ACCOUNT allocation contains 576 bytes in 19 blocks [root@ProtocolStacks sbin]# ./smbd -i -d 10 > /root/UML/samba-3.0.22/TESTING/TRACES/INTERACTIVE/ipadd_auth_logon/smbd_i_d_10 talloc report on 'null_context' (total 2827 bytes in 76 blocks) struct service_control_op contains 77 bytes in 5 blocks SORTED_TREE contains 527 bytes in 44 blocks pdb_context internal allocation context contains 1647 bytes in 7 blocks passdb internal SAM_ACCOUNT allocation contains 576 bytes in 19 blocks [root@ProtocolStacks sbin]# [root@ProtocolStacks ipadd_auth_logon]#
no it didn't crash. In Samba 3.0.x, `smbd -i` handles one connmection an exits. This is currently by design.