Question about the output from sockstat
Below is some sample output:
I would like to know if someone could explain the '*' as well as the '*:*'
I am guessing that the local address with a single * means listen on any address for that specific port, and since its local only, then the foreign address with '*:*' means that it cannot be connected remotely. At least I hope that is the case.
Also similarly I find it interesting that ntpd runs as root, in addition my webserver seems to run httpd as both root and an unprivileged user. Is that to be expected?
Below is some sample output:
Code:
[brad@moon ~]$ sockstat -4l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
brad ssh 1426 4 tcp4 127.0.0.1:6667 *:*
root Xorg 1171 3 tcp4 *:6000 *:*
root sendmail 1012 4 tcp4 127.0.0.1:25 *:*
root ntpd 781 20 udp4 *:123 *:*
root ntpd 781 22 udp4 192.168.0.104:123 *:*
root ntpd 781 25 udp4 127.0.0.1:123 *:*
root syslogd 562 7 udp4 *:514 *:*
I would like to know if someone could explain the '*' as well as the '*:*'
I am guessing that the local address with a single * means listen on any address for that specific port, and since its local only, then the foreign address with '*:*' means that it cannot be connected remotely. At least I hope that is the case.
Also similarly I find it interesting that ntpd runs as root, in addition my webserver seems to run httpd as both root and an unprivileged user. Is that to be expected?