LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-06-2007, 02:44 AM   #1
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
how to setup ftp server in centos 5.0


Anyone can provide me the guide ,how to set up vsftp (ftp server ) in centos 5.0?
 
Old 11-06-2007, 03:19 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It depends a lot what you want to do with ftp. For example, my system only allows users to log on and has no anonymous access or uploading.

However, to set it up is pretty straightforward. CentOS comes with vsftp (and maybe other servers), but all I needed to do was to play around with /etc/vsftpd/vsftpd.conf and start the daemon. I did it a while back, but as I recall it took next to no time to get it running.

I'd suggest you have a look at the config file, as it'd pretty well commented. There's aslo man vsftpd.conf which goes into far more detail.
 
Old 11-06-2007, 03:49 AM   #3
melvinong
Member
 
Registered: May 2007
Posts: 47

Original Poster
Rep: Reputation: 15
package install

Quote:
Originally Posted by melvinong View Post
Anyone can provide me the guide ,how to set up vsftp (ftp server ) in centos 5.0?
when i set up centos 5.0, is that any package is mandatory to install if i want to set up ftp server?
 
Old 11-06-2007, 04:05 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I guess it depends what's already there. Try

yum list installed | grep ftp

If nothing, the standard CentOS packages seem to be vsftp and proftp. You can install these with yum very easily (yum install vsftp for example)
 
Old 11-06-2007, 01:33 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
if you did not install the ftp package during installation, you will need to install vsftp

yum install vsftp

you can start the daemon service vsftpd start

configure it in /etc/vsftp/vstpd.conf

I am having some problems with it, but it might be because I enabled SELinux and Firewalls. Remember to create filters for them
 
Old 11-06-2007, 02:19 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You will also want to enable vsftp on start-up, so

chkconfig vsftpd on
 
Old 11-06-2007, 08:03 PM   #7
melvinong
Member
 
Registered: May 2007
Posts: 47

Original Poster
Rep: Reputation: 15
how to let the daemon service vsftpd start

Can u show me the step to let the daemon service vsftpd start?
Thanks....




Quote:
Originally Posted by Micro420 View Post
if you did not install the ftp package during installation, you will need to install vsftp

yum install vsftp

you can start the daemon service vsftpd start

configure it in /etc/vsftp/vstpd.conf

I am having some problems with it, but it might be because I enabled SELinux and Firewalls. Remember to create filters for them
 
Old 11-06-2007, 11:10 PM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
service vsftpd start

from command line as root
 
Old 05-08-2008, 10:07 AM   #9
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Rep: Reputation: 15
how to know that vsftp is working?

How can one check that vsftpd is working?

I had these three ftp packages installed:

[root@w168108-010004001091 vsftpd]# yum list installed | grep ftp
ftp.i386 0.17-33.fc6 installed
lftp.i386 3.5.1-2.fc6 installed
vsftpd.i386 2.0.5-10.el5 installed
[root@w168108-010004001091 vsftpd]#

How do you select which one you want?

What I did, was to remove ftp.i386 and lftp.i386. But I stop the service vsftpd and I still can connect with sftp with filezilla. How is that?
 
Old 07-20-2009, 03:06 PM   #10
choadrocker
LQ Newbie
 
Registered: Jul 2009
Location: sf
Distribution: centos and ubuntu
Posts: 1

Rep: Reputation: 0
sftp is not ftp

sftp is part of openssh and responds on port 22, whereas ftp responds on port 21

ftp and lftp are clients not servers, so you may actually find you want them installed after all

the way i would check if ftp is running is either one of these:

# netstat -nap | grep 21

or:

# ps -ef | grep -i ftp

or more simply:

# ftp localhost

and see if you get a connection. this means you will have to reinstall the ftp package you removed previously
 
Old 07-20-2009, 08:49 PM   #11
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Here's the manual (Centos=RHEL): http://www.linuxtopia.org/online_boo...p-servers.html
 
Old 07-21-2009, 12:02 AM   #12
thewebedge
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: -2
Hi,

Here are the steps.

1) yum install vsftpd
2) /etc/init.d/vsftpd restart
3) useradd username
4) passwd username

And check from FTP client if you get through.
 
Old 09-01-2009, 10:21 AM   #13
Tshetum
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Here are the steps:
1) yum install vsftpd
2)edit vsftpd.conf
vim /etc/vsftpd/vsftp.conf
make necessary changes
3)chkconfig vsftpd on
4)service vsftpd restart
 
Old 12-06-2009, 11:30 PM   #14
linuxhantu
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Hi,

The installation process is easy,

just
1. rpm -iUVh vfstpd*.rpm (in your CentOS DVD iso under Centos folder)
2. ensure you firewall is not blocking (you might temporary disable firewall to diagnose first), service iptables stop
3. make your ftp services started (service vsftpd start) and (chkconfig vsftpd on)
4. check your ftp (service vsftpd status)
5. try ftp localhost and use another pc to ftp to you vsftpd server

Last edited by linuxhantu; 12-07-2009 at 04:51 AM.
 
Old 05-27-2010, 09:52 AM   #15
digibandit
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
i have vsftp up and running but

I am trying to create a user that will allow my web builder to log in and update my website and i can't seem to figure out how to create a user that he can use to do that he uses dream weaver and the weavers ability to log in and let you work on the files through ftp so i was going to create a user called webdream but so far i have not had any luck
can some one tell me how to do it
i know i can log in with winspc and do anything but my web builder needs ftp access
please help

here is my vsftpd.conf file listing

anonymous_enable=no
local_enable=YES
write_enable=YES
local_umask=0777
file_open_mode=0777
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
async_abor_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome you have made it to my FTP site.
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
chroot_local_user=YES
ls_recurse_enable=YES
listen=YES
pam_service_name=vsftpd
tcp_wrappers=YES
max_clients=2
max_per_ip=5
pasv_max_port=35000
pasv_min_port=30000
userlist_deny=no

here is the directory listing that the user needs to have access to

drwxr-xr-x 24 root root 4096 May 22 12:09 var
drwxr-xr-x 6 root root 4096 Apr 4 17:23 www
drwxr-xr-x 6 root root 4096 Apr 4 17:23 html

total 48
drwxr-xr-x 6 root root 4096 Apr 4 17:23 .
drwxr-xr-x 6 root root 4096 Apr 4 17:23 ..
drwxr-xr-x 7 root root 4096 May 7 08:43 default
drwxr-xr-x 7 root root 4096 May 7 06:00 designplansolutions.com
drwxr-xr-x 7 root root 4096 May 7 05:58 n1ib.com
drwxr-xr-x 7 root root 4096 May 16 10:48 n1ib.net

./default:
total 56
drwxr-xr-x 7 root root 4096 May 7 08:43 .
drwxr-xr-x 6 root root 4096 Apr 4 17:23 ..
drwxr-xr-x 2 root root 4096 May 7 08:43 backup
drwxr-xr-x 2 root root 4096 May 7 08:43 cgi-bin
drwxr-xr-x 2 root root 4096 May 7 09:13 log
drwxr-xr-x 2 root root 4096 May 7 08:43 private
drwxr-xr-x 2 root root 4096 May 7 08:50 public

./default/backup:
total 16
drwxr-xr-x 2 root root 4096 May 7 08:43 .
drwxr-xr-x 7 root root 4096 May 7 08:43 ..

./default/cgi-bin:
total 16
drwxr-xr-x 2 root root 4096 May 7 08:43 .
drwxr-xr-x 7 root root 4096 May 7 08:43 ..

./default/log:
total 36
drwxr-xr-x 2 root root 4096 May 7 09:13 .
drwxr-xr-x 7 root root 4096 May 7 08:43 ..
-rw-r--r-- 1 root root 8017 May 26 18:23 access.log
-rw-r--r-- 1 root root 3820 May 25 22:27 error.log

./default/private:
total 16
drwxr-xr-x 2 root root 4096 May 7 08:43 .
drwxr-xr-x 7 root root 4096 May 7 08:43 ..

./default/public:
total 24
drwxr-xr-x 2 root root 4096 May 7 08:50 .
drwxr-xr-x 7 root root 4096 May 7 08:43 ..
-rw-r--r-- 1 root root 101 May 7 08:50 index.html

./designplansolutions.com:
total 56
drwxr-xr-x 7 root root 4096 May 7 06:00 .
drwxr-xr-x 6 root root 4096 Apr 4 17:23 ..
drwxr-xr-x 2 root root 4096 May 7 06:00 backup
drwxr-xr-x 2 root root 4096 May 7 06:00 cgi-bin
drwxr-xr-x 2 root root 4096 May 7 07:42 log
drwxr-xr-x 2 root root 4096 May 7 06:00 private
drwxr-xr-x 2 root root 4096 May 7 06:54 public

./designplansolutions.com/backup:
total 16
drwxr-xr-x 2 root root 4096 May 7 06:00 .
drwxr-xr-x 7 root root 4096 May 7 06:00 ..

./designplansolutions.com/cgi-bin:
total 16
drwxr-xr-x 2 root root 4096 May 7 06:00 .
drwxr-xr-x 7 root root 4096 May 7 06:00 ..

./designplansolutions.com/log:
total 32
drwxr-xr-x 2 root root 4096 May 7 07:42 .
drwxr-xr-x 7 root root 4096 May 7 06:00 ..
-rw-r--r-- 1 root root 981 May 7 08:28 access.log
-rw-r--r-- 1 root root 135 May 7 08:28 error.log

./designplansolutions.com/private:
total 16
drwxr-xr-x 2 root root 4096 May 7 06:00 .
drwxr-xr-x 7 root root 4096 May 7 06:00 ..

./designplansolutions.com/public:
total 24
drwxr-xr-x 2 root root 4096 May 7 06:54 .
drwxr-xr-x 7 root root 4096 May 7 06:00 ..
-rw-r--r-- 1 root root 133 May 7 06:54 index.html

./n1ib.com:
total 56
drwxr-xr-x 7 root root 4096 May 7 05:58 .
drwxr-xr-x 6 root root 4096 Apr 4 17:23 ..
drwxr-xr-x 2 root root 4096 May 7 05:58 backup
drwxr-xr-x 2 root root 4096 May 7 05:58 cgi-bin
drwxr-xr-x 2 root root 4096 May 7 06:40 log
drwxr-xr-x 2 root root 4096 May 7 05:58 private
drwxr-xr-x 2 root root 4096 May 7 06:50 public

./n1ib.com/backup:
total 16
drwxr-xr-x 2 root root 4096 May 7 05:58 .
drwxr-xr-x 7 root root 4096 May 7 05:58 ..

./n1ib.com/cgi-bin:
total 16
drwxr-xr-x 2 root root 4096 May 7 05:58 .
drwxr-xr-x 7 root root 4096 May 7 05:58 ..

./n1ib.com/log:
total 32
drwxr-xr-x 2 root root 4096 May 7 06:40 .
drwxr-xr-x 7 root root 4096 May 7 05:58 ..
-rw-r--r-- 1 root root 3237 May 7 08:28 access.log
-rw-r--r-- 1 root root 1344 May 7 08:28 error.log

./n1ib.com/private:
total 16
drwxr-xr-x 2 root root 4096 May 7 05:58 .
drwxr-xr-x 7 root root 4096 May 7 05:58 ..

./n1ib.com/public:
total 24
drwxr-xr-x 2 root root 4096 May 7 06:50 .
drwxr-xr-x 7 root root 4096 May 7 05:58 ..
-rw-r--r-- 1 root root 103 May 7 06:50 index.html

./n1ib.net:
total 56
drwxr-xr-x 7 root root 4096 May 16 10:48 .
drwxr-xr-x 6 root root 4096 Apr 4 17:23 ..
drwxr-xr-x 2 root root 4096 May 7 07:26 backup
drwxr-xr-x 2 root root 4096 May 7 07:26 cgi-bin
drwxr-xr-x 2 root root 4096 May 7 07:42 log
drwxr-xr-x 2 root root 4096 May 7 07:26 private
drwxr-xr-x 2 root root 4096 May 7 07:28 public

./n1ib.net/backup:
total 16
drwxr-xr-x 2 root root 4096 May 7 07:26 .
drwxr-xr-x 7 root root 4096 May 16 10:48 ..

./n1ib.net/cgi-bin:
total 16
drwxr-xr-x 2 root root 4096 May 7 07:26 .
drwxr-xr-x 7 root root 4096 May 16 10:48 ..

./n1ib.net/log:
total 56
drwxr-xr-x 2 root root 4096 May 7 07:42 .
drwxr-xr-x 7 root root 4096 May 16 10:48 ..
-rw-r--r-- 1 root root 22714 May 27 04:57 access.log
-rw-r--r-- 1 root root 6624 May 26 23:52 error.log

./n1ib.net/private:
total 16
drwxr-xr-x 2 root root 4096 May 7 07:26 .
drwxr-xr-x 7 root root 4096 May 16 10:48 ..

./n1ib.net/public:
total 24
drwxr-xr-x 2 root root 4096 May 7 07:28 .
drwxr-xr-x 7 root root 4096 May 16 10:48 ..
-rw-r--r-- 1 root root 103 May 7 07:28 index.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Best info to setup a ftp server behind the proxy server. bruse Linux - Networking 1 12-14-2005 05:13 PM
CentOS Opening port for FTP Server Thin Linux - Distributions 3 11-16-2005 12:38 PM
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 02:16 AM
How to setup an FTP server tyh Linux - Newbie 1 09-24-2003 11:52 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 04:09 AM


All times are GMT -5. The time now is 06:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration