Search:
+subject: netuser - show processes using TCP/IP sockets

NETUSER(1)                                             NETUSER(1)



NAME
       netuser - show processes using TCP/IP sockets

SYNOPSIS
       netuser [options] port ...

DESCRIPTION
       The  function  of  netuser  is  similiar  to  one found in
       fuser(1).  It prints port number, process id, user id, the
       connection's  local and remote address, and the program of
       each process having an  open  TCP/IP  connection  on  port
       port.
       If  port  is  missing information for every TCP/IP port is
       reported.

OPTIONS
       -a     list also sockets in the listen state (server  pro-
              cesses waiting for connections).

       -b text
              prints text before each process line.

       -k signal
              send each process the signal signal.

       -l pidlist
              restrict output to the comma separated pidlist.

       -n     replace  the  port number with their names found in
              /etc/services.

       -p     print only a list of the port numbers.

       -q     supresses the normal output of process lines.  This
              is  useful  if you just want to terminate processes
              by  netuser.   Specifying  -q  twice  turns   error
              reporting trough stderr off.

       -s     report only sockets in the listen state.

       -u     report UDP instead of TCP ports.


EXAMPLES
       The  following  example  lists  all  processes handling an
       incoming SMTP connection.

            netuser 25

       If the -k option would have been added

            netuser -k 15 25

       these processes would also be terminiated.  The next exam-
       ple

            netuser -ak 9 25

       would  terminate  immediatly  all incoming connections and
       the server process listening on port 25.  A simple

            netuser

       lists all processes having active connections, while

            netuser -p

       lists only the port numbers.
       To get a listing of all openend server ports

            netuser -ps

       can be used.

BUGS
       netuser uses information found in the /proc(5) filesystem.
       So the process command line may not be correct if the com-
       mand manipulates it (e.g. sendmail).

SEE ALSO
       akanga(1), fileuser(1), proc(5).




                          11 April 2002                NETUSER(1)