LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-13-2010, 01:43 PM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Xinetd.d service & Vsftpd


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

Thanks
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-13-2010, 01:49 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 09-13-2010, 02:09 PM   #3
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
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
 
Old 09-13-2010, 04:09 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
2 members found this post helpful.
Old 09-17-2010, 02:03 AM   #5
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Thanks for your reply as your message is very clear.

Appreciated.
 
Old 09-17-2010, 02:36 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by smilemukul View Post
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,

Last edited by sem007; 09-17-2010 at 02:39 AM. Reason: typo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vsftpd & Xinetd Logging Palula Linux - Software 1 11-04-2005 12:17 PM
vsftpd inetd -> xinetd slackster Linux - Networking 2 06-26-2005 05:37 PM
Xinetd not starting vsftpd? simonmccourt Linux - Networking 0 02-22-2004 08:08 AM
VSFTPD problems with xinetd paintcheck200 Linux - Networking 6 09-11-2003 12:39 PM
Cannot get vsftpd and xinetd to play together SForsgren Linux - General 6 05-02-2003 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration