Hello, I've a problem with Samba version 2.0.6, where smbd does not start from inetd. nmbd starts from inetd and "smbd -D" works fine as well. And I didn't have that problem with 2.0.4b. The following is an extraction of the smb.log, which shows an "read_socket_data: recv failure for 4. Error = Invalid argument" error. Regarding this problem, what is the difference between starting smbd as daemon and from inetd. thanks for your help Juergen [smb.log -d 20 ] ---------------------------------------------------------------------------- [1999/11/22 10:00:23, 6] param/loadparm.c:lp_file_list_changed(1855) lp_file_list_changed() file /var/samba/lib/smb.conf -> /var/samba/lib/smb.conf last mod_time: Mon Nov 22 09:34:39 1999 [1999/11/22 10:00:23, 2] lib/interface.c:add_interface(83) added interface ip=204.105.215.16 bcast=204.105.215.255 nmask=255.255.255.0 [1999/11/22 10:00:23, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available. [1999/11/22 10:00:23, 6] lib/charset.c:codepage_initialise(339) codepage_initialise: client code page = 850 [1999/11/22 10:00:23, 5] lib/charset.c:load_client_codepage(196) load_client_codepage: loading codepage 850. Adding chars 0x85 0xb7 (l->u = True) (u->l = True) Adding chars 0xa0 0xb5 (l->u = True) (u->l = True) Adding chars 0x83 0xb6 (l->u = True) (u->l = True) Adding chars 0xc6 0xc7 (l->u = True) (u->l = True) Adding chars 0x84 0x8e (l->u = True) (u->l = True) Adding chars 0x86 0x8f (l->u = True) (u->l = True) Adding chars 0x91 0x92 (l->u = True) (u->l = True) Adding chars 0x87 0x80 (l->u = True) (u->l = True) Adding chars 0x8a 0xd4 (l->u = True) (u->l = True) Adding chars 0x82 0x90 (l->u = True) (u->l = True) Adding chars 0x88 0xd2 (l->u = True) (u->l = True) Adding chars 0x89 0xd3 (l->u = True) (u->l = True) Adding chars 0x8d 0xde (l->u = True) (u->l = True) Adding chars 0xa1 0xd6 (l->u = True) (u->l = True) Adding chars 0x8c 0xd7 (l->u = True) (u->l = True) Adding chars 0x8b 0xd8 (l->u = True) (u->l = True) Adding chars 0xd0 0xd1 (l->u = True) (u->l = True) Adding chars 0xa4 0xa5 (l->u = True) (u->l = True) Adding chars 0x95 0xe3 (l->u = True) (u->l = True) Adding chars 0xa2 0xe0 (l->u = True) (u->l = True) Adding chars 0x93 0xe2 (l->u = True) (u->l = True) Adding chars 0xe4 0xe5 (l->u = True) (u->l = True) Adding chars 0x94 0x99 (l->u = True) (u->l = True) Adding chars 0x9b 0x9d (l->u = True) (u->l = True) Adding chars 0x97 0xeb (l->u = True) (u->l = True) Adding chars 0xa3 0xe9 (l->u = True) (u->l = True) Adding chars 0x96 0xea (l->u = True) (u->l = True) Adding chars 0x81 0x9a (l->u = True) (u->l = True) Adding chars 0xec 0xed (l->u = True) (u->l = True) Adding chars 0xe7 0xe8 (l->u = True) (u->l = True) Adding chars 0x9c 0x0 (l->u = False) (u->l = False) [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5-32 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-1 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-1-0 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-3 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-3-0 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5-21-1959477382-4221018710-28821236 ok [1999/11/22 10:00:23, 3] smbd/server.c:main(699) loaded services [1999/11/22 10:00:23, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 1048576 [1999/11/22 10:00:23, 5] locking/shmem_sysv.c:shm_initialize(424) shm_initialize : initializing shmem size 1048576 [1999/11/22 10:00:23, 6] locking/shmem_sysv.c:shm_alloc(253) shm_alloc : allocated 52 bytes at offset 48 [1999/11/22 10:00:23, 3] locking/shmem_sysv.c:sysv_shm_open(706) Initialised IPC area of size 1048576 [1999/11/22 10:00:23, 6] param/loadparm.c:lp_file_list_changed(1855) lp_file_list_changed() file /var/samba/lib/smb.conf -> /var/samba/lib/smb.conf last mod_time: Mon Nov 22 09:34:39 1999 [1999/11/22 10:00:23, 2] smbd/server.c:main(735) Changed root to / [1999/11/22 10:00:23, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [1999/11/22 10:00:23, 3] lib/util_sock.c:open_socket_in(865) bind succeeded on port 0 [1999/11/22 10:00:23, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 11135, global_oplock_port = 36943 [1999/11/22 10:00:23, 4] lib/time.c:TimeInit(110) Serverzone is -3600 [1999/11/22 10:00:23, 0] lib/util_sock.c:read_socket_data(474) read_socket_data: recv failure for 4. Error = Invalid argument [1999/11/22 10:00:23, 10] lib/util_sock.c:receive_smb(651) receive_smb: length < 0! [1999/11/22 10:00:23, 3] smbd/process.c:timeout_processing(861) receive_smb error (Invalid argument) exiting [1999/11/22 10:00:23, 2] smbd/server.c:exit_server(408) Closing connections [1999/11/22 10:00:23, 3] smbd/server.c:exit_server(435) Server exit (normal exit) [1999/11/22 10:00:23, 6] param/loadparm.c:lp_file_list_changed(1855) lp_file_list_changed() file /var/samba/lib/smb.conf -> /var/samba/lib/smb.conf last mod_time: Mon Nov 22 09:34:39 1999 [1999/11/22 10:00:23, 2] lib/interface.c:add_interface(83) added interface ip=204.105.215.16 bcast=204.105.215.255 nmask=255.255.255.0 [1999/11/22 10:00:23, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available. [1999/11/22 10:00:23, 6] lib/charset.c:codepage_initialise(339) codepage_initialise: client code page = 850 [1999/11/22 10:00:23, 5] lib/charset.c:load_client_codepage(196) load_client_codepage: loading codepage 850. Adding chars 0x85 0xb7 (l->u = True) (u->l = True) Adding chars 0xa0 0xb5 (l->u = True) (u->l = True) Adding chars 0x83 0xb6 (l->u = True) (u->l = True) Adding chars 0xc6 0xc7 (l->u = True) (u->l = True) Adding chars 0x84 0x8e (l->u = True) (u->l = True) Adding chars 0x86 0x8f (l->u = True) (u->l = True) Adding chars 0x91 0x92 (l->u = True) (u->l = True) Adding chars 0x87 0x80 (l->u = True) (u->l = True) Adding chars 0x8a 0xd4 (l->u = True) (u->l = True) Adding chars 0x82 0x90 (l->u = True) (u->l = True) Adding chars 0x88 0xd2 (l->u = True) (u->l = True) Adding chars 0x89 0xd3 (l->u = True) (u->l = True) Adding chars 0x8d 0xde (l->u = True) (u->l = True) Adding chars 0xa1 0xd6 (l->u = True) (u->l = True) Adding chars 0x8c 0xd7 (l->u = True) (u->l = True) Adding chars 0x8b 0xd8 (l->u = True) (u->l = True) Adding chars 0xd0 0xd1 (l->u = True) (u->l = True) Adding chars 0xa4 0xa5 (l->u = True) (u->l = True) Adding chars 0x95 0xe3 (l->u = True) (u->l = True) Adding chars 0xa2 0xe0 (l->u = True) (u->l = True) Adding chars 0x93 0xe2 (l->u = True) (u->l = True) Adding chars 0xe4 0xe5 (l->u = True) (u->l = True) Adding chars 0x94 0x99 (l->u = True) (u->l = True) Adding chars 0x9b 0x9d (l->u = True) (u->l = True) Adding chars 0x97 0xeb (l->u = True) (u->l = True) Adding chars 0xa3 0xe9 (l->u = True) (u->l = True) Adding chars 0x96 0xea (l->u = True) (u->l = True) Adding chars 0x81 0x9a (l->u = True) (u->l = True) Adding chars 0xec 0xed (l->u = True) (u->l = True) Adding chars 0xe7 0xe8 (l->u = True) (u->l = True) Adding chars 0x9c 0x0 (l->u = False) (u->l = False) [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5-32 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-1 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-1-0 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-3 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-3-0 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5 ok [1999/11/22 10:00:23, 7] lib/util_sid.c:string_to_sid(302) string_to_sid: converted SID S-1-5-21-1959477382-4221018710-28821236 ok [1999/11/22 10:00:23, 3] smbd/server.c:main(699) loaded services [1999/11/22 10:00:23, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 1048576 [1999/11/22 10:00:23, 5] locking/shmem_sysv.c:shm_initialize(424) shm_initialize : initializing shmem size 1048576 [1999/11/22 10:00:23, 6] locking/shmem_sysv.c:shm_alloc(253) shm_alloc : allocated 52 bytes at offset 48 [1999/11/22 10:00:23, 3] locking/shmem_sysv.c:sysv_shm_open(706) Initialised IPC area of size 1048576 [1999/11/22 10:00:23, 6] param/loadparm.c:lp_file_list_changed(1855) lp_file_list_changed() file /var/samba/lib/smb.conf -> /var/samba/lib/smb.conf last mod_time: Mon Nov 22 09:34:39 1999 [1999/11/22 10:00:23, 2] smbd/server.c:main(735) Changed root to / [1999/11/22 10:00:23, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [1999/11/22 10:00:23, 3] lib/util_sock.c:open_socket_in(865) bind succeeded on port 0 [1999/11/22 10:00:23, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 11141, global_oplock_port = 36944 [1999/11/22 10:00:23, 4] lib/time.c:TimeInit(110) Serverzone is -3600 [1999/11/22 10:00:23, 0] lib/util_sock.c:read_socket_data(474) read_socket_data: recv failure for 4. Error = Invalid argument [1999/11/22 10:00:23, 10] lib/util_sock.c:receive_smb(651) receive_smb: length < 0! [1999/11/22 10:00:23, 3] smbd/process.c:timeout_processing(861) receive_smb error (Invalid argument) exiting [1999/11/22 10:00:23, 2] smbd/server.c:exit_server(408) Closing connections [1999/11/22 10:00:23, 3] smbd/server.c:exit_server(435) Server exit (normal exit) [smb.conf ] ---------------------------------------------------------------------------- ... [global] workgroup = DEBO_GMDOPEL001 guest ok = no guest account = %U case sensitive = yes preserve case = yes admin users = root browsable = yes dead time = 5 message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s server string = CAD-Server (SUN) password server = dbo1fl19 security = domain log file = /var/samba/log/%m.log log level = 20 debug level = 20 wins server = wins_1 nt acl support = yes encrypt passwords = yes password level = 0 username level = 0 [IPC$] path = /tmp guest ok = yes ... [inetd.conf] ---------------------------------------------------------------------------- ... # # Samba # netbios-ssn stream tcp nowait root /var/samba/bin/smbd smbd -d 20 netbios-ns dgram udp wait root /var/samba/bin/nmbd nmbd swat stream tcp nowait.400 root /var/samba/bin/swat swat ...