diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-09-23 20:08:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-09-23 20:08:46 +0000 |
commit | 31ec93e580fe9261020b6734dfa729734ab880e6 (patch) | |
tree | 8d50f0ab8e9bb2298f8efbf2682ea580af3701a6 | |
parent | ca1c1afadc06c206455fbee35c73a3099de550d0 (diff) | |
download | busybox-w32-31ec93e580fe9261020b6734dfa729734ab880e6.tar.gz busybox-w32-31ec93e580fe9261020b6734dfa729734ab880e6.tar.bz2 busybox-w32-31ec93e580fe9261020b6734dfa729734ab880e6.zip |
Add some notes on how to make telnetd actually work
-rw-r--r-- | networking/Config.in | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/networking/Config.in b/networking/Config.in index a7cef41bf..42176f050 100644 --- a/networking/Config.in +++ b/networking/Config.in | |||
@@ -492,11 +492,45 @@ config CONFIG_FEATURE_TELNET_AUTOLOGIN | |||
492 | config CONFIG_TELNETD | 492 | config CONFIG_TELNETD |
493 | bool "telnetd" | 493 | bool "telnetd" |
494 | default n | 494 | default n |
495 | select CONFIG_LOGIN | ||
495 | help | 496 | help |
496 | A daemon for the TELNET protocol, allowing you to log onto the host | 497 | A daemon for the TELNET protocol, allowing you to log onto the host |
497 | running the daemon. Please keep in mind that the TELNET protocol | 498 | running the daemon. Please keep in mind that the TELNET protocol |
498 | sends passwords in plain text. If you can't afford the space for | 499 | sends passwords in plain text. If you can't afford the space for an |
499 | any SSH daemon and you trust your network, you may say 'y' here. | 500 | SSH daemon and you trust your network, you may say 'y' here. As a |
501 | more secure alternative, you should seriously consider installing the | ||
502 | very small Dropbear SSH daemon instead: | ||
503 | http://matt.ucc.asn.au/dropbear/dropbear.html | ||
504 | |||
505 | Note that for busybox telnetd to work you need several things: | ||
506 | First of all, your kernel needs: | ||
507 | CONFIG_UNIX98_PTYS=y | ||
508 | CONFIG_DEVPTS_FS=y | ||
509 | |||
510 | Next, you need a /dev/pts directory on your root filesystem: | ||
511 | |||
512 | $ ls -ld /dev/pts | ||
513 | drwxr-xr-x 2 root root 0 Sep 23 13:21 /dev/pts/ | ||
514 | |||
515 | Next you need the pseudo terminal master multiplexer /dev/ptmx: | ||
516 | |||
517 | $ ls -la /dev/ptmx | ||
518 | crw-rw-rw- 1 root tty 5, 2 Sep 23 13:55 /dev/ptmx | ||
519 | |||
520 | Any /dev/ttyp[0-9]* files you may have can be removed. | ||
521 | Next, you need to mount the devpts filesystem on /dev/pts using: | ||
522 | |||
523 | mount -t devpts devpts /dev/pts | ||
524 | |||
525 | You need to be sure that Busybox has CONFIG_LOGIN and | ||
526 | CONFIG_FEATURE_SUID enabled. And finally, you should make | ||
527 | certain that Busybox has been installed setuid root: | ||
528 | |||
529 | chown root.root /bin/busybox | ||
530 | chmod 4755 /bin/busybox | ||
531 | |||
532 | with all that done, telnetd _should_ work.... | ||
533 | |||
500 | 534 | ||
501 | config CONFIG_FEATURE_TELNETD_INETD | 535 | config CONFIG_FEATURE_TELNETD_INETD |
502 | bool " Support call from inetd only" | 536 | bool " Support call from inetd only" |