RE: fto connection refused problem

"scan" <[email protected]> Sun, 6 Apr 2003 15:18:44 +0200
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
probably control you listening connections and restard the xinetd, where
wu-ftp is definied.
following I run on an debian server to control listening on ports 25,110
(you have to control port 21 only. - see later)


#!/bin/bash
# file: /root/bin/mailcontroler.sh
# date: Thu Jan 16 01:19:50 CET 2003
# who : scan
# what: controls mail service
#

sort=/usr/bin/sort
netstat=/bin/netstat
grep=/bin/grep
mail=/usr/bin/mail

# check smtp service
${netstat} -nt --listen | ${grep} -e "\:25[[:space:]]" >/dev/null 2>&1
if [ $? != 0 ]; then
   /etc/init.d/inetd restart
   sleep 1
   echo smtp restarted | ${mail} -s "mashine: smtp restarted" scan
fi

# check pop service
${netstat} -nt --listen | ${grep} -e "\:110[[:space:]]" >/dev/null 2>&1
if [ $? != 0 ]; then
   /etc/init.d/inetd restart
   sleep 1
   echo pop3 restarted | ${mail} -s "mashine: pop restarted" scan
fi

## EOF

simple change 25 or 110 against 21 nebst inetd against xinetd;
means:

#!/bin/bash
# file: /root/bin/mailcontroler.sh
# date: Thu Jan 16 01:19:50 CET 2003
# who : scan
# what: controls ftp service
#

sort=/bin/sort
netstat=/bin/netstat
grep=/bin/grep
mail=/bin/mail

# check ftp service
${netstat} -nt --listen | ${grep} -e "\:21[[:space:]]" >/dev/null 2>&1
if [ $? != 0 ]; then
   /etc/init.d/xinetd restart
   echo xinetd restarted | ${mail} -s "mashine: smtp restarted" scan
fi

## EOF

whould work or you missconfigured the ftp-server. see logfile what happens!

regards~andreas

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Maroun Farah
Sent: Saturday, April 05, 2003 17:39
To: [email protected]
Subject: fto connection refused problem


Hi,

ftp was working fine two weeks ago, suddenly it
started giving me the message
ftp connection refused

This happens when a client tries to ftp into my
comupter.
I also cannot see any ftp service in ps -ef

Anybody has any clue?

Regards,
Maroun.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



_______________________________________________
Guinness-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/guinness-list