cancel
Showing results for 
Search instead for 
Did you mean: 

samba errorr bad file number

10ft
Occasional Advisor

samba errorr bad file number

I installed samba (CIFS server) on a B2600 with hpux 11.0.
When i try to copy a share of samba (with a large number of files andirectory) i have problem.
My client is a win2000 .
On log.smb i read
Failed to set socket options TCP_NODELAY (Error bad file number)

The entry Socket options on my smb.conf is default.
Any idea ?
Is first time i have a problem like this with samba that i use normaly
to copy big archive.

Thanks

2 REPLIES
Steven Sim Kok Leong
Honored Contributor

Re: samba errorr bad file number

Hi,

Here's someone's partial analysis of it. Accordingly, it is caused when the client file descriptor is invalid i.e. -1.

http://samba.cadcamlab.org/lists/samba-technical/Apr2000/00148.html

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com
Steven Sim Kok Leong
Honored Contributor

Re: samba errorr bad file number

Hi,

Did you get the following error as well?

"Failed to set socket option SO_KEEPALIVE (Error Bad file number)"

It was also stated in the attached thread in the link that if you receive this error, then the client file descriptor is an invalid number but not -1.

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com