LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP server (https://www.linuxquestions.org/questions/linux-software-2/ftp-server-77801/)

Thetargos 07-31-2003 04:41 PM

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.

jqcaducifer 07-31-2003 05:22 PM

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).

Thetargos 08-03-2003 06:26 PM

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)

DrOzz 08-03-2003 07:22 PM

again.....
what is the error you getting when trying to log in.

Thetargos 08-05-2003 06:14 PM

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??

mortsahl 08-15-2003 02:30 AM

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!

Thetargos 08-15-2003 12:09 PM

Thanks.

abonam 08-18-2003 10:15 PM

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

mortsahl 08-18-2003 11:16 PM

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).

abonam 08-18-2003 11:52 PM

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

abonam 08-19-2003 12:28 AM

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


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