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 - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-31-2003, 04:41 PM   #1
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
FTP server


I know this may (not it is, actually) a re-post. But since I posted the other one on the networking forum, I got stuck... Anyway here I go:

I installed vsftpd from RPM on RH9. I've checked the configuration file and the man page suggestions for the setting it up, however I am unable to simply login (user or anonymous) so my question here is: What am I missing?

Thanks for any help.
 
Old 07-31-2003, 05:22 PM   #2
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
What's the error message? Maybe some other service is not turned on (xinted, forgot how to spell), or maybe your network is messed, and you can't log on as root (at least it doesn't work for me).
 
Old 08-03-2003, 06:26 PM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Ok, it may have to do with the fact that I messed around with the FTP user and it's properties... So What would be the best way to set up an FTP server with vsftpd?

Note I am able to login to the server computer from my local computer with ssh (root and otherwise). I have enabled the port for FTP and the support to FTP transactions on the FireWall settings (lokkit and redhat-securitylevel)
 
Old 08-03-2003, 07:22 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
again.....
what is the error you getting when trying to log in.
 
Old 08-05-2003, 06:14 PM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I just get an error stating that I cannot log in to the system and a timeout tying to stablish a connection. Should I leave the default RPM settings??
 
Old 08-15-2003, 02:30 AM   #6
mortsahl
LQ Newbie
 
Registered: Aug 2003
Location: Littleton, CO
Distribution: Red Hat 9
Posts: 8

Rep: Reputation: 0
Hopefully you didn't screw up the ftp user ... assuming you didn't ....

vsftpd.conf must be in /etc . RH 9 puts the sample file in /etc/vsftpd ... put a copy in /etc -- then edit it and comment out Listen = yes.

Do a "locate vsftpd" ... in the listing you'll see a ...

/usr/share/doc/vsftpd-1.1.3/vsftpd.xinetd

copy that to /etc/xinetd.d and rename it to vsftpd . Now edit the file and change "disable = yes" to "disable = no".

Do a /etc/init.d/xinetd restart or reboot your machine and you should have a working vsftpd.

If you did hopelessly screw up the ftp user ... reinstall!
 
Old 08-15-2003, 12:09 PM   #7
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Thanks.
 
Old 08-18-2003, 10:15 PM   #8
abonam
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
Hi,

I am having trouble with ftp server on RH9.
here my vsftpd settings, under /etc/xinetd.d

service ftp
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
nice = 10
rlimit_as = 16M
instances = 1
per_source = 1
server = /usr/sbin/vsftpd
}


and here the output of lsof command:

[tester@LinuxDevTest xinetd.d]# lsof -c x -a -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 2457 root 5u IPv4 106419 TCP *:login (LISTEN)
xinetd 2457 root 6u IPv4 106420 TCP *:shell (LISTEN)
xinetd 2457 root 8u IPv4 106421 TCP LinuxDevTest:35481 (LISTEN)
xinetd 2457 root 9u IPv4 106424 TCP *:telnet (LISTEN)
xinetd 27846 root 5u IPv4 692909 UDP *:mtftp
xinetd 27846 root 6u IPv4 692916 TCP *:ftp (LISTEN)
xinetd 27848 root 5u IPv4 692929 UDP *:mtftp



Now, any attempt to connect to ftp server fails with the following message:

530 This FTP server is anonymous only.
Login failed.


Actually the settings of my ftp service allow me to download a file from the server and only with anonymous ftp.

Any idea/suggestion on this matter?

Thank you in advance,
-Andrea
 
Old 08-18-2003, 11:16 PM   #9
mortsahl
LQ Newbie
 
Registered: Aug 2003
Location: Littleton, CO
Distribution: Red Hat 9
Posts: 8

Rep: Reputation: 0
It appears you are getting the default, compiled in, actions.

If you haven't already, copy /etc/vsftpd/vsftpd.conf to /etc, then edit the .conf file for the features you want (it's very well documented).
 
Old 08-18-2003, 11:52 PM   #10
abonam
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
Hi,


I changed the following on /etc/vsftpd/vsftpd.conf
#
# Allow anonymous FTP?
anonymous_enable=NO
#
#

but still the client got the 530 message "This FTP server is anonymous only.
Login failed."

Any suggestion on the most common changes to /etc/vsftpd/vsftpd.conf
in order to allow a client to use ftp?

Thanks,

_Andrea
 
Old 08-19-2003, 12:28 AM   #11
abonam
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
DONE!!!!


here my /etc/vsftpd.conf file:


local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=nobody
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
anonymous_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES



need to define a /etc/vsftpd.chroot_list listing the userID of
local ftp client. If not needed, comment the following:

#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd.chroot_list


Thanks,
_Andrea
 
  


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
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
How do I set my FTP server to accept passive FTP? imsam Linux - Newbie 3 12-12-2004 06:22 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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