multiple inetd spawning from an inetd

multiple inetd spawning from an inetd

Post by arab » Thu, 30 May 2002 15:43:03



On several Solaris 7 and 8 systems I am observing inetd processes that
are spawning other inetd processes.

Why is that?

 
 
 

multiple inetd spawning from an inetd

Post by Darren Dunha » Fri, 31 May 2002 00:55:49



> On several Solaris 7 and 8 systems I am observing inetd processes that
> are spawning other inetd processes.

So you have multiple 'inetd' processes in the 'ps' list?  Can you
provide any more information?

Quote:> Why is that?

Something's screwed up.

I'd worry about the inetd.conf, then I'd worry about binaries and
patches.

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

multiple inetd spawning from an inetd

Post by Andrew Gabri » Fri, 31 May 2002 01:10:43




Quote:> On several Solaris 7 and 8 systems I am observing inetd processes that
> are spawning other inetd processes.

Multiple inetd processes are a feature of a number of security
break-ings and the resulting hacked systems. Are you sure the
extras were spawned by inetd?

Of course, inetd will fork just before execing a spawned command,
but you wouldn't normally notice the duplicate inetd for the
very short period it exists before it exec's.

--
Andrew Gabriel

 
 
 

multiple inetd spawning from an inetd

Post by Alan Coopersmi » Fri, 31 May 2002 01:41:01



|Of course, inetd will fork just before execing a spawned command,
|but you wouldn't normally notice the duplicate inetd for the
|very short period it exists before it exec's.

I have seen it occasionally when the process to be exec'ed is on a down
NFS server - but you should be able to truss and see if it's* in
exec or somewhere else.

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

multiple inetd spawning from an inetd

Post by Barry Margoli » Fri, 31 May 2002 08:15:45




>Of course, inetd will fork just before execing a spawned command,
>but you wouldn't normally notice the duplicate inetd for the
>very short period it exists before it exec's.

Maybe the longer-lived ones are due to the "internal" services like
"echo".  While I expect the main inetd process handles the datagram
services simply by sending the appropriate reply immediately, it probably
forks a new process to handle the stream versions.

Try "telnet localhost echo" and see if this causes a new inetd child
process to be spawned.  When you exit "telnet" it should disappear.

--

Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

1. Q inetd/sockets: how to run my daemon from inetd???

Hi all,

I  wrote  this  really  insignificant program that listens on a port and
writes  a fortune message down the socket, and now I want to run it from
inetd.  So  I  made  entries in /etc/inetd.conf and /etc/services and it
doesn't work.

The  problem  is I guess that I my daemon creates a socket and listen on
it,  then  accepts connections, does its thing and exits. However, inetd
is  listening  on  that  port and execl()'s my fortuned which then finds
the socket in use already and dies on a failed bind.

So  how  can  I  make it so that it knows which file descriptors it gets
from  inetd?  Or,  should  I  rather  have  it run in the background and
fork()  to serve every connection without ever exiting?

Bo.

--
        "Heisenberg may have been here".

2. Bootstrap Error on Install Attempt (NEWBIE)

3. Restart inetd or reboot without using console...when inetd is dead

4. max data size

5. troubles with inetd / inetd.conf

6. Unix Virus's

7. multiple ip's - multiple inetd's?

8. Probleme carte graphique SIS 6215 C

9. Cannot spawn from inetd

10. programming daemons spawned by inetd

11. Wanted: puts/gets for inetd spawned program.

12. inetd spawns copies of itself