• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and configure FTP server on CentOS 7

  • 01:04 yum install httpd
  • 01:30 vim /etc/vsftpd/vsftpd.conf
  • 02:53 systemctl start vsftpd
  • 03:49 systemctl stop firewalld
  • 04:08 cd /home
  • 04:18 mkdir folder1
  • 04:26 touch file1
6628

To Install and configure FTP on Cent OS 7

Introduction:

FTP stands for file transfer protocol that is utilized to transfer files,we can also upload or download files from this protocol, for secure transmission that secures the username and password, and encrypts the content, FTP is designed using a client-server model that uses different data and control connections.

Installation Procedure:

[root@linuxhelp /]# yum install vsftpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.piconets.webwerks.in
 * extras: mirrors.piconets.webwerks.in
 * updates: mirrors.piconets.webwerks.in
Resolving Dependencies
Installed size: 353 k
Is this ok [y/d/N]: y
Downloading packages:
vsftpd-3.0.2-29.el7_9.x86_64.rpm                                          | 173 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : vsftpd-3.0.2-29.el7_9.x86_64                                                  1/1 
  Verifying  : vsftpd-3.0.2-29.el7_9.x86_64                                                  1/1 
Installed:
  vsftpd.x86_64 0:3.0.2-29.el7_9                                                                 
Complete!

Now move into the ftp configuration file

[root@linuxhelp /]# vim /etc/vsftpd/vsftpd.conf

snap1 Now Add user 1

[root@linuxhelp /]# adduser user1

Set the password for user 1

[root@linuxhelp /]# passwd user1
Changing password for user user1.
New password: 
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic
Retype new password: 
passwd: all authentication tokens updated successfully.

Start the vsftpd service

root@linuxhelp /]# systemctl start vsftpd

Make it enable service

[root@linuxhelp /]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.

To prevent the firewall block s the port for it we are disabling it

[root@linuxhelp /]# systemctl stop firewalld

Move in the home directory.

[root@linuxhelp /]# cd /home

List the files.

[root@linuxhelp home]# ls
linuxhelp  user1

change directory to user1

[root@linuxhelp home]# cd user1

Now make the ftp data folder

root@linuxhelp user1]# mkdir folder1
[root@linuxhelp user1]# cd folder1

Now create the file inside the folder1

[root@linuxhelp folder1]# touch file1

Now verifify

[root@linuxhelp folder1]# ls
file1
[root@linuxhelp folder1]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.6.117  netmask 255.255.255.0  broadcast 192.168.6.255
        inet6 fe80::20c:29ff:fe34:1bfa  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:34:1b:fa  txqueuelen 1000  (Ethernet)
        RX packets 14041  bytes 18302263 (17.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7134  bytes 497215 (485.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Now open your ftp with the server IP address in the format as shown

snap2

Now provide user name and password

snap3snap3

With this configuration of FTP on centos 7 comes to an end.

Tags:
rebeccajazz
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is the vsftpd?

A

Very Secure File Transfer Protocol Deamon' (VSFTPD) is one of the most secure FTP daemons available, vsftpd is used as the default FTP server in the Ubuntu, CentOS, Fedora, NimbleX, Slackware and RHEL Linux distros.

Q

What is the root directory location of vsftpd?

A

The root Directory Location of VSFTPD is /srv/ftp/

Q

What is vsftpd configuration file location

A

The VSFTPD configuration file location is /etc/vsftpd.conf

Q

How to change the default vsftpd's root directory location?

A

To change the default VSFTPD's root directory location
Add the following line at the end of vsftpd.conf file without "#" symbol, local_root=example_directory

Q

How to fix 500 OOPS: cannot change directory:/home/user2?

A

To fix 500 OOPS: cannot change directory:/home/user2 error follow the below procedure
create the user by the following command
" useradd -d /srv/ftp/ user2 "
In case if you have created the user already by using " useradd user2 "
you have to manually create the user2 directory under the home directory and change ownership " chown -R user2 user2 "

Related Tutorials in How to install and configure FTP server on CentOS 7

Related Tutorials in How to install and configure FTP server on CentOS 7

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to install and configure FTP server on CentOS 7

Related Forums in How to install and configure FTP server on CentOS 7

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
FTP
stewart class=
How to find which version of ftp server is running
Sep 8, 2017
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.