diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index b617c2889..6e12de07a 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -25,69 +25,69 @@ | |||
25 | //config: default y | 25 | //config: default y |
26 | //config: select FEATURE_SYSLOG | 26 | //config: select FEATURE_SYSLOG |
27 | //config: help | 27 | //config: help |
28 | //config: A daemon for the TELNET protocol, allowing you to log onto the host | 28 | //config: A daemon for the TELNET protocol, allowing you to log onto the host |
29 | //config: running the daemon. Please keep in mind that the TELNET protocol | 29 | //config: running the daemon. Please keep in mind that the TELNET protocol |
30 | //config: sends passwords in plain text. If you can't afford the space for an | 30 | //config: sends passwords in plain text. If you can't afford the space for an |
31 | //config: SSH daemon and you trust your network, you may say 'y' here. As a | 31 | //config: SSH daemon and you trust your network, you may say 'y' here. As a |
32 | //config: more secure alternative, you should seriously consider installing the | 32 | //config: more secure alternative, you should seriously consider installing the |
33 | //config: very small Dropbear SSH daemon instead: | 33 | //config: very small Dropbear SSH daemon instead: |
34 | //config: http://matt.ucc.asn.au/dropbear/dropbear.html | 34 | //config: http://matt.ucc.asn.au/dropbear/dropbear.html |
35 | //config: | 35 | //config: |
36 | //config: Note that for busybox telnetd to work you need several things: | 36 | //config: Note that for busybox telnetd to work you need several things: |
37 | //config: First of all, your kernel needs: | 37 | //config: First of all, your kernel needs: |
38 | //config: CONFIG_UNIX98_PTYS=y | 38 | //config: CONFIG_UNIX98_PTYS=y |
39 | //config: | 39 | //config: |
40 | //config: Next, you need a /dev/pts directory on your root filesystem: | 40 | //config: Next, you need a /dev/pts directory on your root filesystem: |
41 | //config: | 41 | //config: |
42 | //config: $ ls -ld /dev/pts | 42 | //config: $ ls -ld /dev/pts |
43 | //config: drwxr-xr-x 2 root root 0 Sep 23 13:21 /dev/pts/ | 43 | //config: drwxr-xr-x 2 root root 0 Sep 23 13:21 /dev/pts/ |
44 | //config: | 44 | //config: |
45 | //config: Next you need the pseudo terminal master multiplexer /dev/ptmx: | 45 | //config: Next you need the pseudo terminal master multiplexer /dev/ptmx: |
46 | //config: | 46 | //config: |
47 | //config: $ ls -la /dev/ptmx | 47 | //config: $ ls -la /dev/ptmx |
48 | //config: crw-rw-rw- 1 root tty 5, 2 Sep 23 13:55 /dev/ptmx | 48 | //config: crw-rw-rw- 1 root tty 5, 2 Sep 23 13:55 /dev/ptmx |
49 | //config: | 49 | //config: |
50 | //config: Any /dev/ttyp[0-9]* files you may have can be removed. | 50 | //config: Any /dev/ttyp[0-9]* files you may have can be removed. |
51 | //config: Next, you need to mount the devpts filesystem on /dev/pts using: | 51 | //config: Next, you need to mount the devpts filesystem on /dev/pts using: |
52 | //config: | 52 | //config: |
53 | //config: mount -t devpts devpts /dev/pts | 53 | //config: mount -t devpts devpts /dev/pts |
54 | //config: | 54 | //config: |
55 | //config: You need to be sure that busybox has LOGIN and | 55 | //config: You need to be sure that busybox has LOGIN and |
56 | //config: FEATURE_SUID enabled. And finally, you should make | 56 | //config: FEATURE_SUID enabled. And finally, you should make |
57 | //config: certain that Busybox has been installed setuid root: | 57 | //config: certain that Busybox has been installed setuid root: |
58 | //config: | 58 | //config: |
59 | //config: chown root.root /bin/busybox | 59 | //config: chown root.root /bin/busybox |
60 | //config: chmod 4755 /bin/busybox | 60 | //config: chmod 4755 /bin/busybox |
61 | //config: | 61 | //config: |
62 | //config: with all that done, telnetd _should_ work.... | 62 | //config: with all that done, telnetd _should_ work.... |
63 | //config: | 63 | //config: |
64 | //config:config FEATURE_TELNETD_STANDALONE | 64 | //config:config FEATURE_TELNETD_STANDALONE |
65 | //config: bool "Support standalone telnetd (not inetd only)" | 65 | //config: bool "Support standalone telnetd (not inetd only)" |
66 | //config: default y | 66 | //config: default y |
67 | //config: depends on TELNETD | 67 | //config: depends on TELNETD |
68 | //config: help | 68 | //config: help |
69 | //config: Selecting this will make telnetd able to run standalone. | 69 | //config: Selecting this will make telnetd able to run standalone. |
70 | //config: | 70 | //config: |
71 | //config:config FEATURE_TELNETD_INETD_WAIT | 71 | //config:config FEATURE_TELNETD_INETD_WAIT |
72 | //config: bool "Support -w SEC option (inetd wait mode)" | 72 | //config: bool "Support -w SEC option (inetd wait mode)" |
73 | //config: default y | 73 | //config: default y |
74 | //config: depends on FEATURE_TELNETD_STANDALONE | 74 | //config: depends on FEATURE_TELNETD_STANDALONE |
75 | //config: help | 75 | //config: help |
76 | //config: This option allows you to run telnetd in "inet wait" mode. | 76 | //config: This option allows you to run telnetd in "inet wait" mode. |
77 | //config: Example inetd.conf line (note "wait", not usual "nowait"): | 77 | //config: Example inetd.conf line (note "wait", not usual "nowait"): |
78 | //config: | 78 | //config: |
79 | //config: telnet stream tcp wait root /bin/telnetd telnetd -w10 | 79 | //config: telnet stream tcp wait root /bin/telnetd telnetd -w10 |
80 | //config: | 80 | //config: |
81 | //config: In this example, inetd passes _listening_ socket_ as fd 0 | 81 | //config: In this example, inetd passes _listening_ socket_ as fd 0 |
82 | //config: to telnetd when connection appears. | 82 | //config: to telnetd when connection appears. |
83 | //config: telnetd will wait for connections until all existing | 83 | //config: telnetd will wait for connections until all existing |
84 | //config: connections are closed, and no new connections | 84 | //config: connections are closed, and no new connections |
85 | //config: appear during 10 seconds. Then it exits, and inetd continues | 85 | //config: appear during 10 seconds. Then it exits, and inetd continues |
86 | //config: to listen for new connections. | 86 | //config: to listen for new connections. |
87 | //config: | 87 | //config: |
88 | //config: This option is rarely used. "tcp nowait" is much more usual | 88 | //config: This option is rarely used. "tcp nowait" is much more usual |
89 | //config: way of running tcp services, including telnetd. | 89 | //config: way of running tcp services, including telnetd. |
90 | //config: You most probably want to say N here. | 90 | //config: You most probably want to say N here. |
91 | 91 | ||
92 | //applet:IF_TELNETD(APPLET(telnetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 92 | //applet:IF_TELNETD(APPLET(telnetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
93 | 93 | ||