LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Xinetd.d service & Vsftpd (https://www.linuxquestions.org/questions/linux-newbie-8/xinetd-d-service-and-vsftpd-831930/)

smilemukul 09-13-2010 01:43 PM

Xinetd.d service & Vsftpd
 
Hi,
How can Vsftpd services & Xinetd.d services can be differenciated ?

Thanks

MensaWater 09-13-2010 01:49 PM

From the man page:

Code:

vsftpd is the Very Secure File Transfer Protocol Daemon. The server can  be launched via a “super-server” such as inetd(8) or xinetd(8).  Alterna-tively, vsftpd can be launched in standalone mode, in which case vsftpd itself will listen on the network. This latter mode is easier to use, and recommended. It is activated by setting listen=YES in /etc/vsftpd/vsftpd.conf. Direct execution of the vsftpd binary will then launch the FTP service ready for immediate client connections.
That doesn't say it but of course you probably need to change the /etc/xinetd.d/vsftpd file to have "disable = yes" or not have that file at all so it doesn't try to use xinetd to start LISTEN.

smilemukul 09-13-2010 02:09 PM

so to start the vsftpd service I have to use /etc/xinetd.d/vsftpd file but vsftpd service can also be started through service vsftpd start ?

Thanks

MensaWater 09-13-2010 04:09 PM

No.

You EITHER start it with xinetd.d OR with "service vsftpd start" but NOT with both. The startup script for the latter is in /etc/init.d (notice the difference - xinetd.d and init.d are two different things which unfortunately have similar names but different purposes).

In /etc/xinet.d do a "grep -i vsftpd *" to see if any file is set to start it. If so you need to set that disable option I noted in earlier post.
In /etc/init.d make sure you have vsftpd. You shouldn't have to modify this file at all. You use chkconfig to tell it what run levels to start in. Running "chkconfig --list vsftpd" will show you if it is already set to run in any runlevels.

As noted in the above quote the preferred method is to run vsftpd as a stand alone daemon - that means use the /etc/init.d, chkconfig, service stuff rather than any /etc/xinetd.d stuff. You may not have anything in /etc/xinetd.d for vsftpd if you have a standard install. You may also not have it in /etc/init.d and may need to install with "yum install vsftpd".

The point in xinetd is to listen for services that aren't needed all the time so as free resources. If you are only getting one ftp hit a week then it doesn't make much sense to run vsftpd 24-7 (i.e. via the init.d init script). If however you are getting an ftp connection every 10 seconds it doesn't make much sense to run it from xinetd.d as it will essentially be running all the time anyway. This is a decision you can make with almost every daemon. However as noted in the above man page they say the preferred method is to run it as a standalone anyway.

smilemukul 09-17-2010 02:03 AM

Thanks for your reply as your message is very clear.

Appreciated.

sem007 09-17-2010 02:36 AM

Quote:

Originally Posted by smilemukul (Post 4096316)
Hi,
How can Vsftpd services & Xinetd.d services can be differenciated ?

Thanks

services under /etc/xinetd.d/ directory are Transient service managed by xinetd daemon.

There is no vsftpd service under xinetd.d in redhat/centos. there is gssftp service.

gssftp service is a transient services. ( conf. file is /etc/xinetd.d/gssftp)

vsftpd is a systemV service (stand alone).

Regards,


All times are GMT -5. The time now is 11:38 PM.