Telnet Server Kubuntu Mayo 23, 2008
Posted by karlozkordova in GNU/Linux, Telnet.Tags: telnet kubuntu
add a comment
Con la necesidad de instalar un servidor telnet empiezo a buscarlo con:
aptitude serach telnet, con lo cual instalo el paquete telnetd junto con sus depencias.
La pregunta va cuando al realizar un dpkg -L telnetd obtengo lo siguiente y entonces como lo inicio???
| $ dpkg -L telnetd /. /usr /usr/lib /usr/lib/telnetlogin /usr/share /usr/share/man /usr/share/man/man5 /usr/share/man/man5/issue.net.5.gz /usr/share/man/man8 /usr/share/man/man8/in.telnetd.8.gz /usr/share/man/man8/telnetlogin.8.gz /usr/share/doc /usr/share/doc/telnetd /usr/share/doc/telnetd/BUGS /usr/share/doc/telnetd/copyright /usr/share/doc/telnetd/changelog.gz /usr/share/doc/telnetd/README.gz /usr/share/doc/telnetd/changelog.Debian.gz /usr/sbin /usr/sbin/in.telnetd ******** Esto es importante pues me lleva a pensar que se inicia con xinet o inet /usr/share/man/man8/telnetd.8.gz |
Busco /etc/inet.conf y tiene ya la siguente configuración:
| $ cat /etc/inetd.conf telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd |
y al hacer un invoke-rc.d inetd start me da un error, pues no se llama así mi servico de inet , pero tranquilos vamos a /etc/init.d y buscamos quien llama a nuestro archivo asi:
| carlos@kriuxk:/etc/init.d$ grep inet * openbsd-inetd:# Provides: inetd openbsd-inetd:# Short-Description: Start or stop the inetd daemon. openbsd-inetd:DAEMON=/usr/sbin/inetd openbsd-inetd:[ -x $DAEMON -a -e /etc/inetd.conf ] || exit 0 openbsd-inetd:[ -e /etc/default/openbsd-inetd ] && . /etc/default/openbsd-inetd openbsd-inetd: if ! grep -v -s “^ *#” /etc/inetd.conf | grep -q -s ‘rpc/’; then openbsd-inetd: log_action_msg “ (Commenting out the rpc services in inetd.conf will” openbsd-inetd: log_action_msg “ (Commenting out the rpc services in inetd.conf will” openbsd-inetd: if ! grep -q “^[0-9A-Za-z/]” /etc/inetd.conf; then openbsd-inetd: log_daemon_msg “Starting internet superserver” “inetd” |
Con lo cual observamos que nuestro script que inica el servicio se llama openbsd-inetd y listo ahora si:
| sudo invoke-rc.d openbsd-inetd start/stop etc. |
