Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-05-2003, 09:20 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 40
Rep:
|
ftp config
Hi,
I downloaded vsftpd but I can't find any program to use it, when I try to run it, it say it does not run standaole, must be started from inetd. Any suggestion?
|
|
|
08-05-2003, 10:30 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
RHL 9 - its using xinetd. Redhat ships vsftpd. The RHL 9 version can be a stand alone server or an xinetd controlled service.
If you need to start it with xinetd:
1. check /etc/vsftpd/vsftpd.conf and make sure this is commented:
listen=YES -> put a # to disable
2. Create a vsftpd file under /etc/xinetd.d/ with lines likes this:
# default: off
# description: The vsftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
nice = 10
disable = no
flags = IPv4
}
then restart xinetd:
/sbin/service xinetd restart
You need to be root to do these.
hth.
|
|
|
08-05-2003, 10:36 PM
|
#3
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
So get inetd to start it for you!
As root, edit /etc/inetd so that inetd starts it for you.
Add a line
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/vsftpd
and any command line arguments it needs as appropriate
and restart the server with
/etc/init.d/inetd restart
BUT since you are using RedHat9 (or so you claim in your sidebar info), are you not running xinetd?
Then as root, create the file in /etc/xinetd.d/vsftpd with the following contents
#*****************************************************************************#
#
# file : /etc/xinetd.d/vsftpd
#
#*---------------------------------------------------------------------------*#
#
# description : The vsftpd FTP server serves FTP connections. It uses
# unencrypted username and password pairs for authentication.
#
service ftp
{
bind = <insert your IP address here>
disable = no
flags = REUSE
nice = 10
server = /usr/sbin/vsftpd
server_args = <add appropriate command line arguments here or delete this line>
socket_type = stream
user = root
wait = no
}
#
#*****************************************************************************#
Then restart the server with
# /etc/init.d/xinetd restart
Not too difficult?
|
|
|
08-06-2003, 05:35 PM
|
#4
|
Member
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 40
Original Poster
Rep:
|
I did it but still refuse connections....
[root@localhost root]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
500 OOPS: vsftpd: too many arguments (I take an optional config file only)
And my config file:
#*****************************************************************************#
#
# file : /etc/xinetd.d/vsftpd
#
#*---------------------------------------------------------------------------*#
#
# description : The vsftpd FTP server serves FTP connections. It uses
# unencrypted username and password pairs for authentication.
#
service ftp
{
bind = 127.0.0.1
disable = no
flags = REUSE
nice = 10
server = /usr/sbin/vsftpd
socket_type = stream
user = root
wait = no
}
#
#*****************************************************************************#
thanks for any help
|
|
|
08-06-2003, 09:04 PM
|
#5
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
From /usr/share/doc/xinetd-2.3.11/CHANGELOG
---------------------------------------------------------------------------------
CHANGELOG: All services now essentially default to having the REUSE flag.
CHANGELOG: The -reuse option and the REUSE flag are now silently ignored.
--------------------------------------------------------------------------------
I missed that one, so remove the
FLAGS=REUSE
line and trying again.
Please let post if that works or not (including error message).
|
|
|
All times are GMT -5. The time now is 07:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|