Problem with IPC?

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Dec 14 14:31:35 GMT 2000


Hi Michael,
I ran into a similar problem on HP-UX, here's what was going on in my case.
I don't think it's the same as what you are experiencing, but you might
check the 
permissions on the shared memory areas that samba creates as well from the
output
of the commands I describe below...
Hope it helps,
Don

*************************
CIFS/9000 Server (Samba) can fail to run with the following error message: 


ERROR: root did not create the semaphore: semgid=1, rootgid=3 
error railed to initialize shared moded. 
failed to initialize shared memory. 


startsmb will seem to work, but when you try to do a smbstatus, you will 
get this error. 


The cause of the problem is that at some point in the past, Samba was 
started 
by a root user when the home gid for the root account was DIFFERENT than the



current home gid for root. Samba does not remove the shared memory or 
semaphores 
it uses to access shared memory when you bring it down, and always tries to 
use 
existing shared memory and semaphores if it finds them. When it finds that 
the 
semaphore it is using was created with a different gid than the current root

home 
gid, it fails to initialize. This could happen on some systems with special 
security 
or where the customer uses a special program (like .do) to switch from a 
normal user 
to a user with root privileges. 


The shared memory and semaphore keys that Samba uses are: 
shared mem key = 0x00280267 
semaphore key = 0x00280269 


Fortunately, the solution to this problem is simple. 
Shut down samba (stopsmb) 
and remove the shared memory and semaphores: 


ipcrm -M 0x00280267 
ipcrm -S 0x00280269 


Then start Samba (smbstart) while logged in as root. 

*********************************


-----Original Message-----
From: Michal Kopijasz [mailto:mkm at zetokat.com.pl]
Sent: Thursday, December 14, 2000 4:12 AM
To: samba at us5.samba.org
Subject: Problem with IPC?


Hi everybody,

I have a next problem:
My system is Linux Madrake (ver 7.2 with kernel: 2.2.17)
There are 3 Windows 2k, and rest of Windows 98SE in my network. I'm using
samba ver 2.0.7 (latest). When I configuring/compiling/starting samba it
seem to be all ok, but problem is when I try to connect with.
First user (from terminal (smbclient) or from Windows 98SE) is logged ok,
but other users cannot log in.

In log file I see next: (sorry for long text)

---------------------------- log ---------------------------------
[2000/12/14 07:58:49, 3] param/loadparm.c:lp_load(2805)
  pm_process() returned Yes
[2000/12/14 07:58:49, 0] param/loadparm.c:service_ok(1825)
  No path in service printers - using /tmp
[2000/12/14 07:58:49, 3] param/loadparm.c:lp_add_ipc(1594)
  adding IPC service
[2000/12/14 07:58:49, 3] param/loadparm.c:lp_add_printer(1629)
  adding printer service hp4l
[2000/12/14 07:58:49, 2] lib/interface.c:add_interface(83)
  added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
[2000/12/14 07:58:49, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1014 are
available.
[2000/12/14 07:58:49, 3] smbd/server.c:main(704)
  loaded services
[2000/12/14 07:58:49, 3] smbd/server.c:main(712)
  Becoming a daemon.
[2000/12/14 07:58:49, 3] lib/util_sock.c:open_socket_in(875)
  bind succeeded on port 139
[2000/12/14 07:58:49, 2] smbd/server.c:open_sockets(181)
  waiting for a connection
[2000/12/14 07:58:54, 3] locking/shmem_sysv.c:sysv_shm_open(707)
  Initialised IPC area of size 1048576
[2000/12/14 07:58:54, 2] smbd/server.c:main(746)
  Changed root to /
[2000/12/14 07:58:54, 3] smbd/oplock.c:open_oplock_ipc(86)
  open_oplock_ipc: opening loopback UDP socket.
[2000/12/14 07:58:54, 3] lib/util_sock.c:open_socket_in(875)
  bind succeeded on port 0
[2000/12/14 07:58:54, 3] smbd/oplock.c:open_oplock_ipc(114)
  open_oplock ipc: pid = 9741, global_oplock_port = 1101
[2000/12/14 07:58:54, 2] lib/access.c:check_access(258)
  Allowed connection from zetont.intranet (192.168.0.251)
[2000/12/14 07:58:54, 3] smbd/process.c:process_smb(618)
  Transaction 0 of length 72
[2000/12/14 07:58:54, 2] smbd/reply.c:reply_special(97)
  netbios connect: name1=ZETO             name2=ZETONT         
[2000/12/14 07:59:21, 2] smbd/server.c:main(746)
  Changed root to /
[2000/12/14 07:59:21, 3] smbd/oplock.c:open_oplock_ipc(86)
  open_oplock_ipc: opening loopback UDP socket.
[2000/12/14 07:59:21, 3] lib/util_sock.c:open_socket_in(875)
  bind succeeded on port 0
[2000/12/14 07:59:21, 3] smbd/oplock.c:open_oplock_ipc(114)
  open_oplock ipc: pid = 9761, global_oplock_port = 1102
[2000/12/14 07:59:21, 2] lib/access.c:check_access(258)
  Allowed connection from pok60b.intranet (192.168.0.82)
[2000/12/14 07:59:21, 3] smbd/process.c:process_smb(618)
  Transaction 0 of length 72
[2000/12/14 07:59:21, 2] smbd/reply.c:reply_special(97)
  netbios connect: name1=ZETO             name2=POK60B         
[2000/12/14 07:59:30, 0] locking/shmem_sysv.c:sysv_shm_open(667)
  Can't create or use IPC area. Error was File exists
[2000/12/14 07:59:30, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes
---------------------------- log ---------------------------------

Last four lines repeats.
What can I do? 

Thx for help

Sinscerely,

mkm          Administrator Systemow Operacyjnych
mailto: mkm at zetokat.com.pl    http://3279222780/
+48032581067, +48032580421 wew.238, 0607 162-041





More information about the samba mailing list