Operating System - Linux
1833717 Members
2352 Online
110063 Solutions
New Discussion

Re: problem wid "vsftpd service"

 
vnykr
Advisor

problem wid "vsftpd service"

hi,
i have started ftp services in fc3 by
PROMPT$ service vsftpd start
it has succesfully started. i have kept some files in /var/ftp.
i am able to open my own ftp as normal user by typing
ftp://
in browser(mozilla)
but when i tries from other systems...error is comming stating that folder is not found..
and they r unable to open my ftp share.

where we need to keep all the files.
and what modifications i need to do..
i allowed anonymously logging in
thanQ
6 REPLIES 6
Vipulinux
Respected Contributor

Re: problem wid "vsftpd service"

Hi
Put the files under /var/ftp/pub

make sure that files are world readable.

Cheers
Vipul
Steven E. Protter
Exalted Contributor

Re: problem wid "vsftpd service"

Shalom,

If you are using iptables firewall, you may need to use connection tracking to get the ftp traffic through the firewall. Make sure ports 20-21 are open on tcp and udp.

And:

modprobe ip_conntrack_ftp

That may solve your problem.

I won't check back because I'm going to take the RHCE in a few minutes.

Just for grins, this may be needed on your firewall. Also, vsfptd.conf file may be default which enables anonymous.

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
vnykr
Advisor

Re: problem wid "vsftpd service"

hi SEP

how to open ports 21 and 22 in fc3.

(1)modprobe ip_conntrack_ftp
(2)iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

what these things will do??
Alexander Chuzhoy
Honored Contributor

Re: problem wid "vsftpd service"

1. ip_conntack_ftp enables your firewall to identify related to ftp packets.
2. If packets comping to your box are related to your outgoing request- they will be allowed.


add 2 more rules:
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
vnykr
Advisor

Re: problem wid "vsftpd service"

to run vsftpd
we need one morething
xinetd..
bcz vsftpd is controlled by xinetd service.
and v need to create a file named "vsftpd" in /etc/xinetd.d/
$vi /etc/xinetd.d/vsftpd
edit and include the following in that


service ftp
{

disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
nice = 10

}
then restart "xinetd" service as follows

$service xinetd restart

then restart vsftpd as

$service vsftpd restart

and now put those files u want to fut in ftp in /var/ftp/

and enjooooooooy ftp service

byeeeee
vnykr


Ivan Ferreira
Honored Contributor

Re: problem wid "vsftpd service"

>to run vsftpd
>we need one morething
>xinetd..
>bcz vsftpd is controlled by xinetd service.

Even when this afirmation is right, is not the only way to run the service. The vsftpd service can be run wihtout the xinetd superdaemon as standalone service. The configuration file indicates how it will be executed (listen=YES).

If you will run as an independent service, it will have a rc script in /etc/rc.d/init.d.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?