I ran into a problem and cannot find a way out of it. I am trying to run the telnet demon and the ftp demon on tiny core linux 4.5.2. I downloaded and installed the internet servers by invoking tce-load -wi inetutils-servers.tcz. Then, I created a file /usr/local/etc/inetd.conf, containing the following two lines:
- telnet stream tcp nowait root /usr/local/sbin/telnetd telnetd
- ftp stream tcp nowait root /usr/local/sbin/ftpd ftpd -A
Furthermore I added inetd to /opt/bootlocal.sh and created the directory /usr/local/etc/inetd.d. I persisted my configuration by typing sudo filetool.sh -b. After reboot, ps -A shows, that inetd is running for root. However, telnet localhost results in an error message, stating, that the host would be unreachable. Also ftp from another machine yields into an error message, stating that the connection could not be opened. nmap shows, that the only open port is 80, on which my apache server is running, which in turn is running very well. So, in general, socket communications work.
Restarting the superserver with debug messages by invoking sudo killall -9 inetd; inetd -d reveals a surprise: I do not receive any messages. On an UBUNTU 12.04 machine I get the following two messages with the very same configuration (except for the paths):
- ADD: telnet proto=tcp, wait.max=0.256 user:group=root:(default) builtin=0 server=/usr/sbin/telnetd
- ADD: ftp prot=tcp, wait.max=0.256 user:group=root:(default) builtin=0 server=/usr/sbin/ftpd
After reading this post (
http://forum.tinycorelinux.net/index.php/topic,11430.msg60419.html#msg60419), I checked /etc/protocols, which contains the two entries for tcp and udp. I also tried to replace tcp with tcp4 after reading this post (
http://forum.tinycorelinux.net/index.php?topic=11516.0). All without luck. Any other ideas?
Regards, Florian.