Why is inetd not creating telnet or ftp sessions on my redhat 6.2 box?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why is inetd not creating telnet or ftp sessions on my redhat 6.2 box?
Hi, I have a redhat 6.2 box running as an external webserver and i want to establish an ftp session to upload some documents from my internal network and i cant get a session through inetd. I upgraded inetd-0.16-4 to inetd-0.16-7 but it made no difference.
I can't see any reason why these sessions aren't being established.
telnet is disabled by default even on Redhat 6.2, I believe. You should not enable it - use ssh instead. It provides the same functionality and more, plus it is leagues more secure than telnet. telnet is old, insecure and even dangerous. Don't use it.
As for why inetd doesn't call the FTP server - did you check the /etc/inetd.conf file to see if it has an entry for the FTP server?
the telnet scenario was really just a test to see if inetd would work for another service, as it wouldn't work for ftp in my live environment. I took the server offline and networked up my laptop with the server, to see if i could establish a telnet session. Which i could not. Also the strange thing in this test is that i could ping the server from my laptop, but the server could not ping my laptop.
i checked ipchains but its just setup with the default accept everything rules. i cant see what was preventing it from pinging the laptop.
i checked the /etc/inetd.conf file and ftp is enabled and so was telnet for my test, but nothing doing.
there is an ftpaccess file that I think was being utilised as well through
in.ftpd -l -a and I changed it to just log incase there was something in the ftpaccess file that was causing the problem, but this didn't help.
Did you check the logs (wherever they are configure to go - /var/log/syslog, /var/log/ftp.log, something like that). It's usually quite helpful in getting it working.
Also, does it work if you try to log in to the FTP server from the same machine that runs it?
when i try to ftp to itself via its ip or loopback both connections are refused.
the logs /var/log/messages don't seem to be telling me anything useful. in fact they are not even logging my failed ftp attempts. though it has logged
others, unauthorised attempts from last week.
there is a lot of logged messages from last week for telnet and ftp as follows, "bind address is already in use" .
and with regard to restarting inetd a lot of "no such file or directory".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.