[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netstat ohne PID



Bernd Meister schrieb:
Am Dienstag, 1. April 2008 19:39 schrieb Kurt Schwarz:
Bernd Meister schrieb:
Hallo,
Moin,

hab auf einem Debian etch System das Problem, wenn ich "netstat -tulpn"
ausführe in der Spalte wo sonst die PID steht, nur ein Strich angezeigt
wird. Ansonsten mit lsof oder ps wird die PID des Prozesses gezeigt.

Gibt es da eine Lösung?
Na klar!
Die ersten beiden Zeilen sagen es dir.
  (Es konnten nicht alle Prozesse identifiziert werden; Informationen über
  nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
Mache root dann geht´s!
ich habe netstat als root ausgeführt, wird aber trotzdem nicht angezeigt.

Schade. Ich haber erst als User probiert und erhielt obige Anzeige.
Als root bekam ich dann ne Anzeige.
z.B.
kurt@froschlocke:~$ netstat -tulpn
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address  Foreign Address  State    PID/Program
tcp        0      0 127.0.0.1:2208 0.0.0.0:* 	    LISTEN    -
tcp        0      0 0.0.0.0:13288  0.0.0.0:*        LISTEN    3811/skype
tcp        0      0 127.0.0.1:50954 0.0.0.0:*       LISTEN     -
tcp        0      0 0.0.0.0:139    0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:111    0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:113    0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:631    0.0.0.0:*        LISTEN     -
tcp        0      0 127.0.0.1:664  0.0.0.0:*        LISTEN     -
tcp        0      0 127.0.0.1:25   0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:538    0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:445    0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:7741   0.0.0.0:*        LISTEN     -
tcp        0      0 0.0.0.0:33342  0.0.0.0:*        LISTEN     -
tcp6       0      0 :::631              :::*        LISTEN     -
udp        0      0 0.0.0.0:32769  0.0.0.0:*                   -
udp        0      0 0.0.0.0:32770  0.0.0.0:*                   -
udp        0      0 127.0.0.1:32771 0.0.0.0:*                 3811/skype
udp        0      0 0.0.0.0:517    0.0.0.0:*                   -
udp        0      0 0.0.0.0:518    0.0.0.0:*                   -
udp        0      0 192.168.6.2:137 0.0.0.0:*                  -
udp        0      0 0.0.0.0:137    0.0.0.0:*                   -
udp        0      0 192.168.6.2:138 0.0.0.0:*                  -
udp        0      0 0.0.0.0:138    0.0.0.0:*                   -
udp        0      0 0.0.0.0:538    0.0.0.0:*                   -
udp        0      0 0.0.0.0:673    0.0.0.0:*                   -
	.
	.
	. u.s.w
dann als su

kurt@froschlocke:~$ su
Password:
froschlocke:/home/kurt# netstat -tulpn
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State   PID/Program.
tcp        0      0 127.0.0.1:2208  0.0.0.0:*     LISTEN  2948/hpiod
tcp        0      0 0.0.0.0:13288   0.0.0.0:*     LISTEN  3811/skype
tcp        0      0 127.0.0.1:50954 0.0.0.0:*     LISTEN  2951/python
tcp        0      0 0.0.0.0:139     0.0.0.0:*     LISTEN  3388/smbd
tcp        0      0 0.0.0.0:111     0.0.0.0:*     LISTEN  2676/portmap
tcp        0      0 0.0.0.0:113     0.0.0.0:*     LISTEN  3377/inetd
tcp        0      0 0.0.0.0:631     0.0.0.0:*     LISTEN  3074/cupsd
tcp        0      0 127.0.0.1:664   0.0.0.0:*     LISTEN  3456/famd
tcp        0      0 127.0.0.1:25    0.0.0.0:*     LISTEN  3215/exim4
tcp        0      0 0.0.0.0:538     0.0.0.0:*     LISTEN  3361/gdomap
	.
	.
	. u.s.w.


Gruss Bernd
Gruß
Kurt


--
	    Hier kam Kurt ...
	  Schau mal  hier rein
           www.kurtschwarz.de
	       Und Tschüß


Reply to: