Jack Hacks
Archives
Show All
2007
March
List user open sockets on cPanel server
03/17/07
As simple as this:
lsof -n -u^65534,^`cat /etc/passwd | awk -F':' '{if($3 < 32000) print $3}' | xargs | sed -e 's/ /,\^/g'` -i | awk '{if ($2 ~ /[0-9]*/) print $3, $1}' | sort | uniq -c | sort -n
The awk part is for excludi
February
Links
Home
Contact Me
Stats
Abdicator's Blog
Login
Archives
View Archives
2007
March
List user open sockets on cPanel server
03/17/07
February
Categories
FreeBSD
Linux
Search
Counter Totals
Total:
231
Today:
9
Yesterday:
10
Most Recent Entries
List user open sockets on cPanel server
How to extract SYN packets with tcpdump
WPA for Ubuntu
Make BASH update your terminal window title after logon
FreeBSD rc.firewall fix for blacklisted ip support
Most Recent Comments
madison
Monday, February 19, 2007, 03:24 PM
----------- CUT -----------