Search This Blog

Wednesday, 21 June 2017

How to setup vsftpd on CentOS 6

Step 1: As with any new server, it’s always important to ensure your system is up to date. so you can use the following command to update it.
ftp 1
Step 2: Next you need to install VSFTPD on your virtual private server in the command line. And install  the FTP client also.
ftp 2
Step 3: Once VSFTPD installed successfully, we need to edit the configuration file, find the following command to edit the ftp configuration.
ftp 3

Disallow anonymous unidentified users to access files via FTP; change the anonymous_enable setting to NO:
anonymous_enable= NO
Allow local uses to login by changing the local_enable setting to YES:
local_enable=YES
If you want local user to be able to write to a directory, then change the write_enable setting to YES:
write_enable=YES
When this line chroot_local_user is set to yes. all the local users will be jailed within their chroot and will be denied access to any other part of the server
chroot_local_user=YES
Finally save and exit the file with the following command :wq
Step 4: Restart the VSFTPD service, using the following command
ftp 4
Step 5: In order to ensure that VSFTPD runs at boot, run chkconfig
ftp 5


That’s It, VSFTPD will installed successfully on your virutal private server.



Thank you…..!

No comments:

Post a Comment