RE: what process is using a port

2004-05-04 Thread Domonkos Czinke
Or you can use 

fuser -n tcp 80 

Also.

Domonkos Czinke

-Original Message-
From: LeVA [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 03, 2004 7:15 PM
To: [EMAIL PROTECTED]
Subject: what process is using a port


Hi!

Is there a way to figure out what program is using a port. For example I

want to know which process is using port 80. How can I do this?

ps.: and another tiny question: Is it possible to see if a symlink is 
pointing at a given file?

Thanks!

Daniel

-- 
LeVA



Re: what process is using a port

2004-05-04 Thread Bernd Eckenfels
In article [EMAIL PROTECTED] you wrote:
 or for listening ports
 
 netstat -anp | grep LIST

recent netstat versions do have a -l switch which you can use instead of
-a.

BTW: sadly enough there is a kerneln bug, which does not show all IPV6
listening sockets for /proc clients like netstat and lsof. This is a shame,
since Ik now this was one of the most laughed miss-features of some windows
versions. (#243084 Herbert supplied a patch to David Miller for upstream
inclusion).

Greetings
Bernd
-- 
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: what process is using a port

2004-05-04 Thread Domonkos Czinke
Or you can use 

fuser -n tcp 80 

Also.

Domonkos Czinke

-Original Message-
From: LeVA [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 03, 2004 7:15 PM
To: debian-security@lists.debian.org
Subject: what process is using a port


Hi!

Is there a way to figure out what program is using a port. For example I

want to know which process is using port 80. How can I do this?

ps.: and another tiny question: Is it possible to see if a symlink is 
pointing at a given file?

Thanks!

Daniel

-- 
LeVA



Re: what process is using a port

2004-05-04 Thread Bernd Eckenfels
In article [EMAIL PROTECTED] you wrote:
 or for listening ports
 
 netstat -anp | grep LIST

recent netstat versions do have a -l switch which you can use instead of
-a.

BTW: sadly enough there is a kerneln bug, which does not show all IPV6
listening sockets for /proc clients like netstat and lsof. This is a shame,
since Ik now this was one of the most laughed miss-features of some windows
versions. (#243084 Herbert supplied a patch to David Miller for upstream
inclusion).

Greetings
Bernd
-- 
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/



Re: what process is using a port

2004-05-04 Thread Tomasz Rola
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 3 May 2004, Steve Suehring wrote:

 On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
  Hi!
  
  Is there a way to figure out what program is using a port. For example I 
  want to know which process is using port 80. How can I do this?
 
 lsof -i
 
  ps.: and another tiny question: Is it possible to see if a symlink is 
  pointing at a given file?
 
 ls -la symlink (?)  Or am I misunderstanding your question?

Just a little thought: if one has symlinks stacked up like in the case of
vi:

/usr/bin/vi - /etc/alternatives/vi - /usr/bin/nvi

ls will give only another symlink as an answer. But chase (apt-get install
chase) will give the filename:

=  (1005 6): chase `which vi`
/usr/bin/nvi

bye
T.

- --
** A C programmer asked whether computer had Buddha's nature.  **
** As the answer, master did rm -rif on the programmer's home**
** directory. And then the C programmer became enlightened...  **
** **
** Tomasz Rola  mailto:[EMAIL PROTECTED] **


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBQJgc1hETUsyL9vbiEQICLgCg9A7qRd0ozOZbYd6hiLkKPLLURnkAoKai
N3iPvEiwgk89NmKq0XUX9GTs
=0khi
-END PGP SIGNATURE-




what process is using a port

2004-05-03 Thread LeVA
Hi!

Is there a way to figure out what program is using a port. For example I 
want to know which process is using port 80. How can I do this?

ps.: and another tiny question: Is it possible to see if a symlink is 
pointing at a given file?

Thanks!

Daniel

-- 
LeVA



pgp0.pgp
Description: signature


Re: what process is using a port

2004-05-03 Thread Zane Dodson
Hello,

On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
| Hi!
| 
| Is there a way to figure out what program is using a port. For example I 
| want to know which process is using port 80. How can I do this?

Try
% sudo lsof -i :80

| ps.: and another tiny question: Is it possible to see if a symlink is 
| pointing at a given file?

AFAIK, that kind of reverse mapping is not available.  I think you
will need to search through all the filesystems that might have a
symlink to the given file.  See find(1).

Best regards,

-- 
Zane Dodson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Diego Alvarez
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?
 

(0) [EMAIL PROTECTED] /home/diego# fuser -n tcp -v 80
here: 80

 USERPID ACCESS COMMAND
80/tcp   root   2136 f  apache2
 root   2164 f  apache2
 root   2165 f  apache2
 root   2166 f  apache2
 root   2167 f  apache2
 root   2168 f  apache2
 root   2510 f  apache2
 root   2865 f  apache2
 root   2869 f  apache2
 root   3939 f  apache2

 ps.: and another tiny question: Is it possible to see if a symlink is 
 pointing at a given file?
 

ls -l /some/path/your_symlink


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Frans Pop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 03 May 2004 19:14, LeVA wrote:
 Is there a way to figure out what program is using a port. For example I
 want to know which process is using port 80. How can I do this?

# info lsof
# lsof -i :port

Cheers,

FJP
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAloX9gm/Kwh6ICoQRAvOtAJ9yNxh6tJRcP15LkSQlfjzIK1d8+ACgzExW
ogQoo8wjUK8ZEwj/zJsgECg=
=fB6H
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Bill Marcum
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?
 
netstat -np
Run it as root, or you will only see the PIDs for your own processes.


-- 
Giraffe: a ruminant with a view.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Steve Suehring
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?

lsof -i

 ps.: and another tiny question: Is it possible to see if a symlink is 
 pointing at a given file?

ls -la symlink (?)  Or am I misunderstanding your question?

Steve


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Richard Collins

 Is there a way to figure out what program is using a port. For example I
 want to know which process is using port 80. How can I do this?

netstat -anp | grep 80

or for listening ports

netstat -anp | grep LIST


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread LeVA
Wow, thanks for all the answers. I really appreciate it!

Daniel


-- 
LeVA



pgp0.pgp
Description: signature


what process is using a port

2004-05-03 Thread LeVA
Hi!

Is there a way to figure out what program is using a port. For example I 
want to know which process is using port 80. How can I do this?

ps.: and another tiny question: Is it possible to see if a symlink is 
pointing at a given file?

Thanks!

Daniel

-- 
LeVA



pgpys9DERUZ4Q.pgp
Description: signature


Re: what process is using a port

2004-05-03 Thread Zane Dodson
Hello,

On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
| Hi!
| 
| Is there a way to figure out what program is using a port. For example I 
| want to know which process is using port 80. How can I do this?

Try
% sudo lsof -i :80

| ps.: and another tiny question: Is it possible to see if a symlink is 
| pointing at a given file?

AFAIK, that kind of reverse mapping is not available.  I think you
will need to search through all the filesystems that might have a
symlink to the given file.  See find(1).

Best regards,

-- 
Zane Dodson
[EMAIL PROTECTED]



Re: what process is using a port

2004-05-03 Thread Diego Alvarez
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?
 

(0) [EMAIL PROTECTED] /home/diego# fuser -n tcp -v 80
here: 80

 USERPID ACCESS COMMAND
80/tcp   root   2136 f  apache2
 root   2164 f  apache2
 root   2165 f  apache2
 root   2166 f  apache2
 root   2167 f  apache2
 root   2168 f  apache2
 root   2510 f  apache2
 root   2865 f  apache2
 root   2869 f  apache2
 root   3939 f  apache2

 ps.: and another tiny question: Is it possible to see if a symlink is 
 pointing at a given file?
 

ls -l /some/path/your_symlink



Re: what process is using a port

2004-05-03 Thread Frans Pop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 03 May 2004 19:14, LeVA wrote:
 Is there a way to figure out what program is using a port. For example I
 want to know which process is using port 80. How can I do this?

# info lsof
# lsof -i :port

Cheers,

FJP
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAloX9gm/Kwh6ICoQRAvOtAJ9yNxh6tJRcP15LkSQlfjzIK1d8+ACgzExW
ogQoo8wjUK8ZEwj/zJsgECg=
=fB6H
-END PGP SIGNATURE-



Re: what process is using a port

2004-05-03 Thread Todd Charron
 Is there a way to figure out what program is using a port. For example I
 want to know which process is using port 80. How can I do this?


lsof -i:80

Todd



Re: what process is using a port

2004-05-03 Thread Bill Marcum
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?
 
netstat -np
Run it as root, or you will only see the PIDs for your own processes.


-- 
Giraffe: a ruminant with a view.



Re: what process is using a port

2004-05-03 Thread Steve Suehring
On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
 Hi!
 
 Is there a way to figure out what program is using a port. For example I 
 want to know which process is using port 80. How can I do this?

lsof -i

 ps.: and another tiny question: Is it possible to see if a symlink is 
 pointing at a given file?

ls -la symlink (?)  Or am I misunderstanding your question?

Steve



Re: what process is using a port

2004-05-03 Thread Richard Collins

 Is there a way to figure out what program is using a port. For example I
 want to know which process is using port 80. How can I do this?

netstat -anp | grep 80

or for listening ports

netstat -anp | grep LIST



Re: what process is using a port

2004-05-03 Thread LeVA
Wow, thanks for all the answers. I really appreciate it!

Daniel


-- 
LeVA



pgpFpG8NgrnLc.pgp
Description: signature