rexecd
?桼?ƥ????ƥ??ϡ?
rexec(3)
?롼?????Τ????Υ????ФǤ???
?ܥ????Фϡ??桼??̾?ȥѥ???ɤ˴??Ť????桼??ǧ?ڤˤ??롢
???⡼?ȥץ??????¹ԤδĶ??????ޤ???
rexecd
?桼?ƥ????ƥ??ϡ?
services(5)
?ˤ? ``exec'' ?????ӥ??????????줿?ݡ??Ȥ?
?ƻ뤷?ޤ????????ӥ??????????????ݤˡ??ʲ??Υץ??ȥ??뤬
?¹Ԥ????ޤ???
- ?????Фϡ??????åȤ??? NUL
(‘
\0
’)
???????????ޤ?ʸ?????ɤߤȤ??ޤ???
????????ʸ???? ASCII ʸ???????ʤ? 10
?ʿ??ο????Ȥ???ɾ???????ޤ???
- ???ƥå? 1 ?Ǽ????????ֹ椬 0
?Ǥʤ????硢?????ֹ??? stderr
?Τ??????Ѥ???????
???ȥ???Τ????Υݡ????ֹ??Ȥ????Ѥ??????ޤ???
???θ塢
????????³?????饤?????ȥۥ??Ⱦ??λ??ꤵ?줿?ݡ??ȤȤδ֤??????????ޤ???
- NUL ?ǽ?λ???????? 16
ʸ???Υ桼??̾???ǽ??Υ????åȤ????????????ޤ???
- NUL
?ǽ?λ???롢?Ź沽???ܤ????Ƥ??ʤ?????
16 ʸ???Υѥ? ??ɤ??ǽ??? socket
?????????????ޤ???
- NUL
?ǽ?λ???롢?????????Ϥ????륳?ޥ??ɤ??ǽ???
socket ???????? ?????ޤ???
???ޥ??ɤ?Ĺ???ϡ??????ƥ??ΰ????ꥹ?Ȥ????¤??ۤ??ʤ?Ĺ????
???¤????ޤ???
rexecd
?桼?ƥ????ƥ??ϡ????ˡ?????????????Ʊ?ͤ˥桼????ǧ?ڤ??Ԥ???
?桼??ǧ?ڤ????????????硢
???????ȥǥ??쥯?ȥ????????桼???Υۡ????ǥ??쥯?ȥ????ѹ?????
?桼???ȥ??롼?פ??ݸ????Ԥʤ??ޤ??????ˤ????????ʳ??????Ԥ??????硢
???ͥ????????????Ǥ??????ǥ??å????????֤??ޤ???
- NUL
ʸ?????ǽ??Υ????åȤ??ֵѤ??졢???ޥ??ɥ饤?????????桼????
?̾??Υ????????????Ϥ????ޤ??? ????????
rexecd
?ˤ??äƳ?Ω???줿?ͥåȥ?????ͥ??????????Ѿ????ޤ???
rexecd
?桼?ƥ????ƥ??? root
?Υ????????????Ĥ??ޤ????? ?????? -i
???ץ??????ޥ??ɹ? (ŵ??Ū?ˤ?
/etc/inetd.conf)
?ǻ??ꤵ?줿?????Ͻ????ޤ???
rexecd
?Ϥޤ?
/etc/ftpusers
?˥ꥹ?Ȥ??줿?桼???ǤΥ?????????
?ѥ???ɤ?̵???桼???Υ????????????Ĥ??ޤ?????
???????Ϥ??٤ƽ????ʥ????????ƥ??ۡ????Ǥ?????
rexec/rexecd
?Υ??ץȤϡ???㡼?ʥ????????ƥ??ۡ????ȡ????????ʤ?
?????????Ǥ??? rexecd
?桼?ƥ????ƥ??? /etc/inetd.conf
?Ǥϥǥե????Ȥ?̵???ˤʤäƤ??ޤ???
?ʲ??Υꥹ?ȤκǸ??Τ??Τ??????????Ƥο??ǥ??å??????ϡ?
¾?Υͥåȥ?????ͥ????????????Ǥ??줿???ˡ??ǽ???
socket ????ͳ???? ?ֵѤ????ޤ???
???顼?ϡ??ǽ??ΥХ??Ȥ??? 1
?Ǥ??뤳?ȤǼ??????ޤ?
(???ޥ??ɤμ¹Ԥ???Ω?????ƤΥ??ƥåפ??????˽?λ???????硢
?嵭?Υ??ƥå? 7 ?ǡ??? 0
???֤????ޤ?)??
- username too long
- ?桼??̾?? 16 ʸ?????ۤ??Ƥ??ޤ???
- password too long
- ?ѥ???ɤ? 16
ʸ?????ۤ??Ƥ??ޤ???
- command too long
- ???ޥ??ɥ饤????Ĺ???? (???ꤵ???Ƥ???)
?????ƥ??ΰ?????Ĺ?????¤??ۤ??Ƥ??ޤ???
- Login incorrect.
- ?ѥ???ɥե??????Υ????ȥ????????桼??̾???????ޤ?????
- Password incorrect.
- ?ѥ???ɤ??????Ǥ???
- No remote directory.
- ?ۡ????ǥ??쥯?ȥ??ؤ?
chdir(1)
???ޥ??ɤ????Ԥ??ޤ?????
- Try again.
- ?????Фˤ???
fork(2)
?????Ԥ??ޤ?????
- <shellname>: ...
- ?桼???Υ????????뤬??ư?Ǥ??ޤ????Ǥ????????Υ??å???????
stderr
?Τ????˳?Ω???줿???ͥ??????????Ѥ????????????ޤ???
?????ơ???Ƭ?˥ե饰?Х??Ȥ??Ĥ????ȤϤ????ޤ?????
???٤ƤΥǡ????ȥѥ???ɤ??????????ˡ????????ΰŹ沽???Ԥʤ???????
?Ѱդ??????٤??Ǥ??礦??
rexecd
?桼?ƥ????ƥ???
4.2BSD ?????о줷?ޤ?????