mmap failed with code 22

Paul F. Ryan ryanpf at
Fri Sep 5 16:59:33 GMT 1997

Good day list readers!  I have an unusual (well, for me anyway!) problem
with a first time install of Samba 1.9.17 on a Linux 1.2.8 platform named

- Clean compile
- Simple smb.conf file (see attachment) with good testparm
- nmblookup -d 2 '*'                              |
- nmblookup -B smbsrv __SAMBA__                   |
- nmblookup any_NT_or_95_Hostname                 | all work correctly
- smbclient -L any_host_but_Samba_box             |
- smbclient '\\any_host_but_Samba_box\someshare'  |
- the samba server appears in W95 and WNT nethoods but won't expand
  i.e. samba server shows up in 'net view' lists but returns an 
    "Error 51: The specified computer is not receiving requests."
  for a 'net view \\smbsrv' command.
- any attempt to use the samba's server side from the smbsrv results 
in the following: 
 smbsrv:~$ smbclient -L smbsrv
 Added interface ip= bcast= nmask=
 Session request failed (0,0) with myname=SMBSRV destname=SMBSRV
 Unspecified error 0x0
 Your server software is being unfriendly
- A peek at the log.smb file (extract only) shows:
 09/03/97 10:41:32 loaded services
 09/03/97 10:41:32 becoming a daemon
 bind succeeded on port 139
 waiting for a connection
 ERROR smb_shm_open : mmap failed with code 22
 ERROR smb_shm_open : mmap failed with code 22

- The code 22 error repeats for every outside attempt to use the smb server

I've looked at the souce and found the error is coming from shmem.c, but
I'm not smart enough to figure out what it's telling me.  Anyone on the
list have a possible solution?  TIA

Paul F. Ryan,   PPI, Allentown, PA     VOICE (610-776-6152)
(ryanpf at          
or (Paul.Ryan at USA.NET)
-------------- next part --------------
 workgroup = ADMIN
;debug level = 5
 comment = Samba Server
 max log size = 50
 short preserve case = yes
 preserve case = yes
 share modes = yes
 security = USER
; socket options = TCP_NODELAY 
;============================ Share Definitions ==============================
   comment = Home Directories
   browseable = no
   writable = yes

; A publicly accessible directory, but read only except for users
   comment = Public Stuff
   path = /home/samba
   public = yes
   writable = yes
   printable = no
   write list = @users

  comment = Temporary file space
  path = /tmp
  read only = no
  public = yes


More information about the samba mailing list