General discussion

Locked

Linux service denial

By robinkrieger ·
I'm trying to ftp and also telnet into my recently installed RedHat 6.1 box. I checked /etc/inted.conf and /etc/services file and found no relevant comments hashed out. Please help. Thanks.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Linux service denial

by t_bonee In reply to Linux service denial

The simplest and quickest thing to try first would be have the system re-read the inetd file and see if you can make a connection after that.

kill -HUP inetd then try to connect. (You may want to double check to make really sure that the ftpand telnet aren't commented out of the inetd.conf)

Collapse -

Linux service denial

by robinkrieger In reply to Linux service denial

When I issue the command I get no such pid. I am logged in as root. If I run ps -ef | grep inetd I get the process ID. When I run kill -HUP pid then it still doesn't work.

Collapse -

Linux service denial

by t_bonee In reply to Linux service denial

If the PID is giving you grief try using kill -HUP inetd instead. You should be able to use inetd instead of the PID.

Also check /etc/hosts.deny to see if you somehow got in there. If not, add the IP of where ever you trying to come from in hosts.allow and see if that helps.

Collapse -

Linux service denial

by robinkrieger In reply to Linux service denial

Poster rated this answer

Collapse -

Linux service denial

by LinuxforWorldLiberation In reply to Linux service denial

Try this first:
telnet localhost
then
ftp localhost

If you got the message connection closed:

You've not enabled telnet and ftp in /etc/inetd.conf

edit /etc/inetd.conf and restart inetd by :

/etc/rc.d/init.d/./inetd restart

try looking for open ports on your Linux server by:

(for telnet)

netstat -an | grep 23

(for ftp)

netstat -an | grep 21

If none of these ports are opened, try rebooting your system.

If it's opened, and you still can't login from local console, try

ipchains -L -n

if there's listed, any rules, flush them:

ipchains -F

Hope these helps.

Collapse -

Linux service denial

by robinkrieger In reply to Linux service denial

I reinstalled the machine and it worked.

Collapse -

Linux service denial

by robinkrieger In reply to Linux service denial

This question was closed by the author

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums