root@debian:~# ps ax
PID TTY STAT TIME COMMAND
1 ? Ss 0:52 /sbin/init
2 ? S< 0:00 [kthreadd]
3 ? SN 0:00 [ksoftirqd/0]
4 ? S< 0:00 [events/0]
5 ? S< 0:00 [khelper]
50 ? S< 0:00 [kblockd/0]
53 ? S< 0:00 [khubd]
55 ? S< 0:00 [kmmcd]
69 ? S 0:00 [crypto]
70 ? S 0:00 [crypto_ret]
75 ? S 0:00 [pdflush]
76 ? S 0:00 [pdflush]
77 ? S< 0:00 [kswapd0]
78 ? S< 0:00 [aio/0]
213 ? S< 0:00 [scsi_eh_0]
214 ? S< 0:00 [scsi_eh_1]
219 ? S< 0:00 [mtdblockd]
220 ? S< 0:00 [nftld]
243 ? S< 0:00 [kcryptd/0]
381 ? S<s 0:00 /sbin/udevd --daemon
672 ? SN 1:24 [jffs2_gcd_mtd1]
867 ? Ss 0:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0
1101 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
1102 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
1110 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
1113 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
1114 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
1116 ttyS0 Ss 0:00 /bin/login --
1152 ? Ss 0:00 /sbin/syslogd -u syslog
1170 ? S 0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
1172 ? Ss 0:00 /sbin/klogd -P /var/run/klogd/kmsg
1190 ? Ss 0:00 /usr/sbin/sshd
1215 ? Ss 0:00 /usr/sbin/cron
1226 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
1229 ttyS0 S 0:00 -bash
1259 ttyS0 R+ 0:00 ps ax
root@debian:~#
と、tty1 ~ tty6 で getty が動いている。root@debian:~# cd /etc/ root@debian:/etc# grep getty * root@debian:/etc# grep getty */* event.d/tty1:# tty1 - getty event.d/tty1:# This service maintains a getty on tty1 from the point the system is event.d/tty1:exec /sbin/getty 38400 tty1 event.d/tty2:# tty2 - getty event.d/tty2:# This service maintains a getty on tty2 from the point the system is event.d/tty2:exec /sbin/getty 38400 tty2 event.d/tty3:# tty3 - getty event.d/tty3:# This service maintains a getty on tty3 from the point the system is event.d/tty3:exec /sbin/getty 38400 tty3 event.d/tty4:# tty4 - getty event.d/tty4:# This service maintains a getty on tty4 from the point the system is event.d/tty4:exec /sbin/getty 38400 tty4 event.d/tty5:# tty5 - getty event.d/tty5:# This service maintains a getty on tty5 from the point the system is event.d/tty5:exec /sbin/getty 38400 tty5 event.d/tty6:# tty6 - getty event.d/tty6:# This service maintains a getty on tty6 from the point the system is event.d/tty6:exec /sbin/getty 38400 tty6 event.d/ttyS0:# ttyS0 - getty event.d/ttyS0:# This service maintains a getty on ttyS0 from the point the system is event.d/ttyS0:exec /sbin/getty 115200 ttyS0 root@debian:/etc#/etc/event.d に何か書いてある
root@debian:/etc# cd event.d/ root@debian:/etc/event.d# ls tty? tty1 tty2 tty3 tty4 tty5 tty6 root@debian:/etc/event.d# rm -f tty? root@debian:/etc/event.d#
root@debian:~# ps ax
PID TTY STAT TIME COMMAND
1 ? Ss 0:52 /sbin/init
2 ? S< 0:00 [kthreadd]
3 ? SN 0:00 [ksoftirqd/0]
4 ? S< 0:00 [events/0]
5 ? S< 0:00 [khelper]
50 ? S< 0:00 [kblockd/0]
53 ? S< 0:00 [khubd]
55 ? D< 0:00 [kmmcd]
69 ? S 0:00 [crypto]
70 ? S 0:00 [crypto_ret]
75 ? S 0:00 [pdflush]
76 ? S 0:00 [pdflush]
77 ? S< 0:00 [kswapd0]
78 ? S< 0:00 [aio/0]
213 ? S< 0:00 [scsi_eh_0]
214 ? S< 0:00 [scsi_eh_1]
219 ? S< 0:00 [mtdblockd]
220 ? S< 0:00 [nftld]
243 ? S< 0:00 [kcryptd/0]
381 ? S<s 0:00 /sbin/udevd --daemon
672 ? SN 1:24 [jffs2_gcd_mtd1]
867 ? Ss 0:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0
1104 ttyS0 Ss 0:00 /bin/login --
1137 ? Ss 0:00 /sbin/syslogd -u syslog
1155 ? S 0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
1157 ? Ss 0:00 /sbin/klogd -P /var/run/klogd/kmsg
1175 ? Ss 0:00 /usr/sbin/sshd
1200 ? Ss 0:00 /usr/sbin/cron
1211 ttyS0 S 0:00 -bash
1222 ttyS0 R+ 0:00 ps ax
root@debian:~#
getty は消えている。GJ
|
|
←(前のページ) /etc/rc.local の修正 |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ 固定アドレスにする |