FTP Server

Configuring ftp server on RHEL/Centos-6/7 step by step.

Step 1 » Vsftpd is a lightweight FTP server package for Centos (linux) . Start installing package by issuing below command.
[root@server1 ~]# yum -y install vsftpd
Step 2 » After installation, Open the file /etc/vsftpd/vsftpd.conf which is the config file for vsftpd ( I mean FTP server ) .
Replace YES to NO in the below line.
Find and Uncomment the below lines
and uncomment this line to limit the users to their home directories.
Step 3 » Create a folder where you want to store FTP data. In my case i’m going to create in / ( root folder ) like below .
[root@server1 ~]# mkdir /ftp
Step 4 » Now start creating users for accessing ftp server .
[root@server1 ~]# useradd -d /ftp/Riya Riya
[root@server1 ~]# passwd Riya
Changing password for user Riya.
New password:
You just created username Riya with home directory /ftp/Riya .

Step 5 » Start vsftpd service by issuing the below command.
[root@server1 ~]# service vsftpd start
and type this below command to start ftp server service automatically while booting.
[root@server1 ~]# chkconfig –levels 235 vsftpd on
Step 6 » That’s it, Now we can check the FTP access .Create some files in /ftp/Riya folder

[root@server1 ~]# touch /ftp/Riya/test
[root@server1 ~]# touch /ftp/Riya/test1
[root@server1 ~]# touch /ftp/Riya/test2



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s