Linode 初期設定 008 初期設定時のデーモンを確認する
rc2.d 内を確認する
% ls -l /etc/rc2.d/ total 4 -rw-r--r-- 1 root root 556 May 19 2008 README lrwxrwxrwx 1 root root 18 Sep 16 09:48 S10sysklogd -> ../init.d/sysklogd lrwxrwxrwx 1 root root 15 Sep 16 09:48 S11klogd -> ../init.d/klogd lrwxrwxrwx 1 root root 17 Sep 16 09:48 S20makedev -> ../init.d/makedev lrwxrwxrwx 1 root root 23 Sep 16 09:48 S20openbsd-inetd -> ../init.d/openbsd-inetd lrwxrwxrwx 1 root root 13 Sep 16 09:48 S20ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 14 Sep 16 09:48 S89cron -> ../init.d/cron lrwxrwxrwx 1 root root 18 Sep 16 09:48 S99rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 Sep 16 09:48 S99rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 23 Sep 16 09:48 S99stop-bootlogd -> ../init.d/stop-bootlogd
開いているポートとそれに結びついているプロセスを表示する
% sudo netstat -lnptu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::10240 :::* LISTEN 24027/sshd udp 0 0 0.0.0.0:68 0.0.0.0:* 1010/dhclient3