PDA

View Full Version : xinetd and pure-ftpd.


maxhrk
09-16-2008, 06:04 AM
greetings, I have a question about oddie things happening in var/log/messages --

Sep 16 01:53:24 server1 xinetd[8142]: EXIT: ftp status=255 pid=28116 duration=0(sec)
Sep 16 01:53:24 server1 xinetd[8142]: EXIT: smtp status=1 pid=28126 duration=0(sec)
Sep 16 01:57:24 server1 xinetd[8142]: Exiting...
Sep 16 01:57:24 server1 xinetd[29914]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 16 01:57:24 server1 xinetd[29914]: Started working: 2 available services
Sep 16 01:57:32 server1 xinetd[29914]: Exiting...
Sep 16 01:57:32 server1 xinetd[30444]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 16 01:57:32 server1 xinetd[30444]: Started working: 2 available services
Sep 16 01:58:24 server1 xinetd[30444]: START: ftp pid=5732 from=127.0.0.1
Sep 16 01:58:24 server1 xinetd[30444]: START: smtp pid=5733 from=127.0.0.1
Sep 16 01:58:24 server1 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Sep 16 01:58:24 server1 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Sep 16 01:58:24 server1 xinetd[30444]: EXIT: ftp status=255 pid=5732 duration=0(sec)
Sep 16 01:58:24 server1 xinetd[30444]: EXIT: smtp status=1 pid=5733 duration=0(sec)


it almost as if to me that xinetd and pure-ftpd try to outdo each other over their space. athough.. i see it offten every few minutes.

This happen often after i installed the fresh install Lxadmin on CentOS 5.2(by following the tutorial guide.)

I am trying to figure out how to solves this problem. Thanks in advance.

yager
09-16-2008, 08:51 AM
Hi maxhrk,

From your log:Sep 16 01:57:32 server1 xinetd[30444]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 16 01:57:32 server1 xinetd[30444]: Started working: 2 available services
Sep 16 01:58:24 server1 xinetd[30444]: START: ftp pid=5732 from=127.0.0.1
Sep 16 01:58:24 server1 xinetd[30444]: START: smtp pid=5733 from=127.0.0.1
Sep 16 01:58:24 server1 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Sep 16 01:58:24 server1 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Sep 16 01:58:24 server1 xinetd[30444]: EXIT: ftp status=255 pid=5732 duration=0(sec)
Sep 16 01:58:24 server1 xinetd[30444]: EXIT: smtp status=1 pid=5733 duration=0(sec)


Xinetd is starting the ftp server and the mail server.

The alternative is to have those servers start as daemons, without using xinetd or inetd.

You should read up on how and for what purposes inetd and xinetd are used.

With your current configuration, every time there is an inbound connection to ftp, xinetd will log a line like you showed:

Sep 16 01:58:24 server1 xinetd[30444]: START: ftp pid=5732 from=127.0.0.1

because xinetd is starting the ftpd server for this conneciton, and will stop it when the connection is complete:

Sep 16 01:58:24 server1 xinetd[30444]: EXIT: ftp status=255 pid=5732 duration=0(sec)

Check also your mail and ftp server logs to see their view of what is taking place. Each of them, and xinetd separately, have their own access control configurations.

Fun, eh?!

maxhrk
09-16-2008, 09:08 PM
thanks for the information! :)