LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to setup ftp server in centos 5.0 (https://www.linuxquestions.org/questions/linux-server-73/how-to-setup-ftp-server-in-centos-5-0-a-597428/)

melvinong 11-06-2007 01:44 AM

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?

billymayday 11-06-2007 02:19 AM

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.

melvinong 11-06-2007 02:49 AM

package install
 
Quote:

Originally Posted by melvinong (Post 2949649)
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?

billymayday 11-06-2007 03:05 AM

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)

Micro420 11-06-2007 12:33 PM

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

billymayday 11-06-2007 01:19 PM

You will also want to enable vsftp on start-up, so

chkconfig vsftpd on

melvinong 11-06-2007 07:03 PM

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 (Post 2950156)
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


billymayday 11-06-2007 10:10 PM

service vsftpd start

from command line as root

Fernandoch 05-08-2008 09:07 AM

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?

choadrocker 07-20-2009 02:06 PM

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

chrism01 07-20-2009 07:49 PM

Here's the manual (Centos=RHEL): http://www.linuxtopia.org/online_boo...p-servers.html

thewebedge 07-20-2009 11:02 PM

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.

Tshetum 09-01-2009 09:21 AM

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

linuxhantu 12-06-2009 10:30 PM

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

digibandit 05-27-2010 08:52 AM

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


All times are GMT -5. The time now is 01:43 AM.