Linux Help Desk

Linux Help Desk

Monday, April 6, 2015

how to configure vsftpd (ftp) Service in CentOS 6.5

How to setup vsftpd service on CentOS 6.5

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.

1. Install vsftpd ftp service :

[root@server ~]# yum install vsftpd -y

2. Install ftp client on linux :

[root@server ~]# yum install ftp -y

3. Create local admin user to access ftp service.

[root@server ~]# useradd admin
[root@server ~]# passwd admin

Changing password for user admin.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

4. Add admin user into vsftpd userlist as below :


[root@server ~]# vi /etc/vsftpd/user_list
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
admin

5. Disabled anonymous access:


anonymous_enable=YES

to below :

anonymous_enable=NO

6. Add the following to bottom of the config file. If userlist_deny=NO, only allow users in this file :

userlist_deny=NO

7. Update the following banner :


ftpd_banner=Welcome to yourdomianFTP service.

8. Start vsftpd service :

[root@server ~]# service vsftpd start

Starting vsftpd for vsftpd:                                [  OK  ]

9. Configure vsftpd daemon start automatically on booting :

[root@server ~]# chkconfig vsftpd on

10. Test ftp service connection from windows client using user1 :


C:\>ftp 192.168.0.5
Connected to 192.168.0.5.
220 Welcome to yourdomian FTP service.
User (192.168.0.5:(none)): admin
331 Please specify the password.
Password:
230 Login successful.
ftp> bye
221 Goodbye.

11. Test ftp service connection from linux client using user1 :

[root@server-05 ~]# ftp 192.168.0.5
Connected to 192.168.0.5 (192.168.0.5).
220 Welcome to yourdomain FTP service.
Name (192.168.0.5:root): admin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> exit
221 Goodbye.

No comments:

Post a Comment