1753546 Members
5667 Online
108795 Solutions
New Discussion юеВ

Re: lsof

 
JUAN VIDAL_1
Advisor

lsof

PA-RISC RP3410

How to list files (i.e. TCP port) owned by root user?
(without sudo settings...)

TIA for your help.

Juan.
2 REPLIES 2
Mel Burslan
Honored Contributor

Re: lsof

Unless you are root, you can not see root's open files or TCP ports. If you are root, a simple lsof|grep root command will show you every open file for root user
________________________________
UNIX because I majored in cryptology...
Mark S Meadows
Valued Contributor

Re: lsof

Hi Juan,

As root try command :

lsof -u root -i tcp

If you want to tie it down to a particular port :

lsof -u root -i tcp:23

I hope this helps.

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).