I have recently installed Samba for the first time. My server is a Dell PowerEdge 300 running Mandrake Linux 7.2. I installed Samba from the Mandrake CD and upgraded the RPMs from the Mandrake update site. My client computers are Windows 2000 Professional computers. I believe that I have correctly configured Samba, as I have been able to get files from all three of my client computers. My smb.conf settings follow below (leaving out most comments and settings related to printing): #======================= Global Settings ====================================[global] workgroup = HEADWATERS server string = Samba Server %v hosts allow = 192.168. 127. printcap name = lpstat load printers = yes printing = cups log file = /var/log/samba/log.%m max log size = 250 security = user socket options = TCP_NODELAY dns proxy = no unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* netbios name = CHURCHILL encrypt passwords = yes smb passwd file = /etc/smbpasswd map to guest = never password level = 8 null passwords = no os level = 65 local master = yes preferred master = yes domain master = yes wins support = yes name resolve order = wins lmhosts interfaces = eth0 shared mem size = 5242880 dead time = 0 debug level = 4 preserve case = yes short preserve case = yes default case = lower case sensitive = no #============================ Share Definitions =============================[homes] comment = Home Directories browseable = no writable = yes [public] comment = Headwaters Staff Files path = /home/public public = yes writeable = yes printable = no browseable = yes [Bryan] comment = Bryan's Staff Files path = /home/public/Bryan writeable = yes printable = no browseable = yes #== FINISH SETTINGS= However, I have experienced a strange problem where only one computer could log in at a time. Other computers would not be able to browse the network at all. After some digging and running diagnostics, I have concluded that the problem is with the shared memory accesses. My smb.log file (diagnostics level 3) follows: [2001/02/13 07:01:43, 1] smbd/server.c:main(641) smbd version 2.0.7 started. Copyright Andrew Tridgell 1992-1998 doing parameter preserve case = yes doing parameter short preserve case = yes doing parameter default case = lower doing parameter case sensitive = no [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[homes]" doing parameter comment = Home Directories doing parameter browseable = no doing parameter writable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[public]" doing parameter comment = Headwaters Staff Files doing parameter path = /home/public doing parameter public = yes doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[Nelson]" doing parameter comment = Nelson's Staff Files doing parameter path = /home/public/Randy/Smart Communities/Nelson doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[Bryan]" doing parameter comment = Bryan's Staff Files doing parameter path = /home/public/Bryan doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[Randy]" doing parameter comment = Randy's Staff Files doing parameter path = /home/public/Randy doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[Raeann]" doing parameter comment = Raeann's Staff Files doing parameter path = /home/public/Raeann doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[websites]" doing parameter comment = KCDC Web sites doing parameter path = /home/websites doing parameter public = yes doing parameter writeable = yes doing parameter printable = no doing parameter browseable = yes [2001/02/13 07:01:43, 2] param/loadparm.c:do_section(2481) Processing section "[printers]" doing parameter comment = All Printers doing parameter path = /var/spool/samba doing parameter browseable = yes doing parameter guest ok = yes doing parameter writable = no doing parameter printable = yes doing parameter create mode = 0700 doing parameter print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). doing parameter lpq command = lpstat -o %p doing parameter lprm command = cancel %p-%j [2001/02/13 07:01:43, 3] param/loadparm.c:lp_load(2805) pm_process() returned Yes [2001/02/13 07:01:43, 3] param/loadparm.c:lp_add_ipc(1594) adding IPC service [2001/02/13 07:01:43, 2] lib/interface.c:add_interface(83) added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 [2001/02/13 07:01:43, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available. [2001/02/13 07:01:43, 3] smbd/server.c:main(704) loaded services [2001/02/13 07:01:43, 3] smbd/server.c:main(712) Becoming a daemon. [2001/02/13 07:01:43, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 139 [2001/02/13 07:01:43, 2] smbd/server.c:open_sockets(181) waiting for a connection [2001/02/13 07:02:02, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:02:02, 3] locking/shmem_sysv.c:sysv_shm_open(707) Initialised IPC area of size 5242880 [2001/02/13 07:02:02, 2] smbd/server.c:main(746) Changed root to / [2001/02/13 07:02:02, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2001/02/13 07:02:02, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2001/02/13 07:02:02, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 10225, global_oplock_port = 1298 [2001/02/13 07:02:02, 4] lib/time.c:TimeInit(110) Serverzone is 0 [2001/02/13 07:02:02, 1] lib/util_sock.c:client_name(1007) Gethostbyaddr failed for 192.168.0.53 [2001/02/13 07:02:02, 2] lib/access.c:check_access(258) Allowed connection from 192.168.0.53 (192.168.0.53) [2001/02/13 07:02:02, 3] smbd/process.c:process_smb(618) Transaction 0 of length 72 [2001/02/13 07:02:02, 2] smbd/reply.c:reply_special(97) netbios connect: name1=CHURCHILL name2=RECEPTION [2001/02/13 07:02:22, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:02:22, 2] smbd/server.c:main(746) Changed root to / [2001/02/13 07:02:22, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2001/02/13 07:02:22, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2001/02/13 07:02:22, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 10227, global_oplock_port = 1299 [2001/02/13 07:02:22, 4] lib/time.c:TimeInit(110) Serverzone is 0 [2001/02/13 07:02:22, 1] lib/util_sock.c:client_name(1007) Gethostbyaddr failed for 192.168.0.51 [2001/02/13 07:02:22, 2] lib/access.c:check_access(258) Allowed connection from 192.168.0.51 (192.168.0.51) [2001/02/13 07:02:22, 3] smbd/process.c:process_smb(618) Transaction 0 of length 72 [2001/02/13 07:02:22, 2] smbd/reply.c:reply_special(97) netbios connect: name1=CHURCHILL name2=MANAGER [2001/02/13 07:02:54, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:02:54, 2] smbd/server.c:main(746) Changed root to / [2001/02/13 07:02:54, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2001/02/13 07:02:54, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2001/02/13 07:02:54, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 10228, global_oplock_port = 1300 [2001/02/13 07:02:54, 4] lib/time.c:TimeInit(110) Serverzone is 0 [2001/02/13 07:02:54, 1] lib/util_sock.c:client_name(1007) Gethostbyaddr failed for 192.168.0.249 [2001/02/13 07:02:54, 2] lib/access.c:check_access(258) Allowed connection from 192.168.0.249 (192.168.0.249) [2001/02/13 07:02:54, 3] smbd/process.c:process_smb(618) Transaction 0 of length 72 [2001/02/13 07:02:54, 2] smbd/reply.c:reply_special(97) netbios connect: name1=CHURCHILL name2=TECH1 [2001/02/13 07:03:13, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:03:13, 2] smbd/server.c:main(746) Changed root to / [2001/02/13 07:03:13, 3] smbd/oplock.c:open_oplock_ipc(86) open_oplock_ipc: opening loopback UDP socket. [2001/02/13 07:03:13, 3] lib/util_sock.c:open_socket_in(875) bind succeeded on port 0 [2001/02/13 07:03:13, 3] smbd/oplock.c:open_oplock_ipc(114) open_oplock ipc: pid = 10234, global_oplock_port = 1301 [2001/02/13 07:03:13, 4] lib/time.c:TimeInit(110) Serverzone is 0 [2001/02/13 07:03:13, 1] lib/util_sock.c:client_name(1007) Gethostbyaddr failed for 192.168.0.250 [2001/02/13 07:03:13, 2] lib/access.c:check_access(258) Allowed connection from 192.168.0.250 (192.168.0.250) [2001/02/13 07:03:13, 3] smbd/process.c:process_smb(618) Transaction 0 of length 72 [2001/02/13 07:03:13, 2] smbd/reply.c:reply_special(97) netbios connect: name1=CHURCHILL name2=EMACHINES [2001/02/13 07:03:15, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:03:15, 0] locking/shmem_sysv.c:sysv_shm_open(667) Can't create or use IPC area. Error was File exists [2001/02/13 07:03:15, 0] locking/locking.c:locking_init(174) ERROR: Failed to initialise share modes [2001/02/13 07:03:15, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:03:15, 0] locking/shmem_sysv.c:sysv_shm_open(667) Can't create or use IPC area. Error was File exists [2001/02/13 07:03:15, 0] locking/locking.c:locking_init(174) ERROR: Failed to initialise share modes [2001/02/13 07:03:21, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:03:21, 0] locking/shmem_sysv.c:sysv_shm_open(667) Can't create or use IPC area. Error was File exists [2001/02/13 07:03:21, 0] locking/locking.c:locking_init(174) ERROR: Failed to initialise share modes [2001/02/13 07:03:21, 4] locking/shmem_sysv.c:sysv_shm_open(547) Trying sysv shmem open of size 5242880 [2001/02/13 07:03:21, 0] locking/shmem_sysv.c:sysv_shm_open(667) Can't create or use IPC area. Error was File exists [2001/02/13 07:03:21, 0] locking/locking.c:locking_init(174) ERROR: Failed to initialise share modes My questions are: 1. Is this a problem with the program, or with the RPM compilation of the program? 2. Increasing the shared mem size from 1 mb to 5 mb alleviated the problem somewhat. With 1 mb, I could only connect 1 computer before subsequent connections failed. With 5 mb, I got up to 3 computers before the fourth connection failed. What is a reasonable shared mem size? The man file says "Set to 5 mb for a large number of files". If I can only support 3 computers with 5 mb, how much should I be allocating to scale up to 10 computers (or more)? Any advice would be most appreciated. Bryan Orthner Technical Coordinator Keewatin Career Development Corporation