Nguyen Cao Dat asked about this: ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? As it happens I have started getting them too - on a PC Application server - the cause seems to be lots of files needed to be open to run applications - Lotus apps seems to be a particular culprit, but experiments indicate that even opening help on Microsoft Word opens 13 files! MAX_OPEN_FILES is a hash define in local.h in the Samba source and can be tweeked - this is for 1.9.18p10 - John Blair's Samba book covers this - p72. Then recompile. Beware this will if you let it change the default shared memory size - SHMEM_SIZE - another define which uses MAX_OPEN_FILES in local.h. This may cause problems since certainly under Solaris shared memory does not vanish on the last detach - you have to reboot OR use ipcrm(1) to remove IF you allow the size to change. I changed the define to keep SHMEM_SZIE the same - ie made the following diff: *** local.h.dist Mon Mar 23 18:31:38 1998 --- local.h Fri Jan 29 11:39:42 1999 *************** *** 34,44 **** MAX_CONNECTIONS services, but any number of machines may connect at one time. */ #define MAX_CONNECTIONS 127 ! #define MAX_OPEN_FILES 100 /* Default size of shared memory used for share mode locking */ #ifndef SHMEM_SIZE ! #define SHMEM_SIZE (1024*MAX_OPEN_FILES) #endif /* the max number of connections that the smbstatus program will show */ --- 34,46 ---- MAX_CONNECTIONS services, but any number of machines may connect at one time. */ #define MAX_CONNECTIONS 127 ! /* #define MAX_OPEN_FILES 100*/ ! #define MAX_OPEN_FILES 200 /* Default size of shared memory used for share mode locking */ #ifndef SHMEM_SIZE ! /* #define SHMEM_SIZE (1024*MAX_OPEN_FILES)*/ ! #define SHMEM_SIZE (1024*100) #endif /* the max number of connections that the smbstatus program will show */ Hope this helps ... and a final thought may be the default of 100 is rather small - what are the resource implications of increasing - just small amount of extra memory per smbd? -- ----------------------------------------------------------------------------- | Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,| | Peter.Polkinghorne@brunel.ac.uk +44 1895 274000 x2561 UK | -----------------------------------------------------------------------------