{"id":4802,"date":"2013-12-19T00:13:23","date_gmt":"2013-12-18T16:13:23","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4802"},"modified":"2023-04-28T09:48:20","modified_gmt":"2023-04-28T09:48:20","slug":"setup-vsftpd-service-on-centos-6-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/setup-vsftpd-service-on-centos-6-5\/","title":{"rendered":"Setup vsftpd Service on CentOS 6.5"},"content":{"rendered":"<p>vsftpd is a free FTP service for UNIX and linux systems. It is very stable, fast and secure ftp server. In this post, i will share how to setup sftpd Service on CentOS 6.5. The steps has been tested working fine with other version of CentOS 6.<\/p>\n<p>1. Install vsftpd ftp service :<\/p>\n<pre>\n[root@server-05 ~]# yum install vsftpd -y\n<\/pre>\n<p>Example :<\/p>\n<pre>\n[root@server-05 ~]# yum install vsftpd -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.upsi.edu.my\n * extras: mirror.upsi.edu.my\n * updates: mirror.upsi.edu.my\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package vsftpd.x86_64 0:2.2.2-11.el6_4.1 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package              Arch                 Version                         Repository          Size\n====================================================================================================\nInstalling:\n vsftpd               x86_64               2.2.2-11.el6_4.1                base               151 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\n\nTotal download size: 151 k\nInstalled size: 331 k\nDownloading Packages:\nvsftpd-2.2.2-11.el6_4.1.x86_64.rpm                                           | 151 kB     00:03\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : vsftpd-2.2.2-11.el6_4.1.x86_64                                                   1\/1\n  Verifying  : vsftpd-2.2.2-11.el6_4.1.x86_64                                                   1\/1\n\nInstalled:\n  vsftpd.x86_64 0:2.2.2-11.el6_4.1\n\nComplete!\n<\/pre>\n<p>2. Install ftp client on linux :<\/p>\n<pre>\n[root@server-05 ~]# yum install ftp -y\n<\/pre>\n<p>3. Create local user1 to access ftp service.<\/p>\n<pre>\n[root@server-05 ~]# useradd user1\n[root@server-05 ~]# passwd user1\nChanging password for user user1.\nNew password:\nRetype new password:\npasswd: all authentication tokens updated successfully.\n<\/pre>\n<p>4. Add user1 into vsftpd userlist as below :<\/p>\n<pre>\n[root@server-05 ~]# vi \/etc\/vsftpd\/user_list\n<\/pre>\n<pre>\nroot\nbin\ndaemon\nadm\nlp\nsync\nshutdown\nhalt\nmail\nnews\nuucp\noperator\ngames\nnobody\nuser1\n<\/pre>\n<p>5. Disabled anonymous access:<\/p>\n<pre>\nanonymous_enable=YES\n<\/pre>\n<p>to below :<\/p>\n<pre>\nanonymous_enable=NO\n<\/pre>\n<p>6. Add the following to bottom of the config file. If userlist_deny=NO, only allow users in this file :<\/p>\n<pre>\nuserlist_deny=NO\n<\/pre>\n<p>7. Update the following banner :<\/p>\n<pre>\nftpd_banner=Welcome to ehowstuff FTP service.\n<\/pre>\n<p>8. Start vsftpd service :<\/p>\n<pre>\n[root@server-05 ~]# service vsftpd start\nStarting vsftpd for vsftpd:                                [  OK  ]\n<\/pre>\n<p>9. Configure vsftpd daemon start automatically on booting :<\/p>\n<pre>\n[root@server-05 ~]# chkconfig vsftpd on\n<\/pre>\n<p>10. Test ftp service connection from windows client using user1 :<\/p>\n<pre>\n\nC:\\>ftp 192.168.0.5\nConnected to 192.168.0.5.\n220 Welcome to ehowstuff FTP service.\nUser (192.168.0.5:(none)): user1\n331 Please specify the password.\nPassword:\n230 Login successful.\nftp> bye\n221 Goodbye.\n<\/pre>\n<p>11. Test ftp service connection from linux client using user1 :<\/p>\n<pre>\n[root@server-05 ~]# ftp 192.168.0.5\nConnected to 192.168.0.5 (192.168.0.5).\n220 Welcome to ehowstuff FTP service.\nName (192.168.0.5:root): user1\n331 Please specify the password.\nPassword:\n230 Login successful.\nRemote system type is UNIX.\nUsing binary mode to transfer files.\nftp> exit\n221 Goodbye.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>vsftpd is a free FTP service for UNIX and linux systems. It is very stable, fast and secure ftp server. In this post, i will share how to setup sftpd&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5597,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,2063],"tags":[1244,1256,1395,1396],"class_list":["post-4802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-ftp","tag-centos","tag-centos-6-5","tag-ftp","tag-ftp-server"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4802"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4802\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5597"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}