Cara install vsFTPd di Linux (Centos)

1. Langkah pertama Instalasi Paket vsftpd

[root@wxyz~]# yum install vsftpd

2. Lalu Konfigurasi

[root@wxyz~]# nano /etc/vsftpd/vsftpd.conf

Yang perlu dirubah adalah:

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

xferlog_std_format=YES

ascii_upload_enable=YES

ascii_download_enable=YES

ftpd_banner=Selamat Datang di FTP Server WXYZ.

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/chroot_list

listen=YES

pam_service_name=vsftpd

userlist_enable=YES

tcp_wrappers=YES

3. Kemudian buat user lokal dengan nama noc

[root@wxyz~]# adduser userftp

[root@wxyz~]# passwd userftp

Changing password for user userftp.

New UNIX password:

BAD PASSWORD: it is too simplistic/systematic

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

4. Membuat file chroot_list

File ini berisi daftar user yang bisa mengakses FTP server.

[root@wxyz~]# nano /etc/vsftpd/chroot_list

Isinya adalah :

userftp

5. Restart Service FTP

[root@wxyz~]# service vsftpd restart

[root@wxyz~]# chkconfig vsftpd on

6. Cek konfigurasi FTP

[root@wxyz~]# getsebool -a | grep ftp

nah dibagian ini gw mendapatkan status : getsebool: SELinux is disabled

maka untuk mengatasi hal tersebut aku edit file :

[root@wxyz~]# nano /etc/selinux/config

dimana sebelumnya filenya :

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=disable
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted

aku edit menjadi :

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=permisive
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted

lalu aku reboot komputer / server. Setelah direboot aku jalan kembali command :

[root@wxyz~]# getsebool -a | grep ftp

allow_ftpd_anon_write –> off

allow_ftpd_full_access –> off

allow_ftpd_use_cifs –> off

allow_ftpd_use_nfs –> off

allow_tftp_anon_write –> off

ftp_home_dir –> on

ftpd_disable_trans –> off

ftpd_is_daemon –> on

httpd_enable_ftp_server –> off

tftpd_disable_trans –> off

apabila ftp_home_dir masih berstatus off, maka jalankan perintah :

[root@wxyz~]# setsebool -P ftp_home_dir on

[root@wxyz~]# iptables -F

Selesai. ketik dibrowser atau diaddress bar my computer:

ftp://ipserver-kamu

http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/

http://wxyz.web.id/cara-install-vsftpd-di-linux-centos

http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/

http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/

http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/
http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/
http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/
http://wxyz.web.id/cara-install-vsftpd-di-linux-centos/

 

Selamat mencoba

7 thoughts on “Cara install vsFTPd di Linux (Centos)

  1. julian

    Mas saya sudah selesai setting dan dan berhasil di akses pada server, tetapi ketika saya mau akses dari komputer lain baik menggunakan filezilla client atau tidak, tetap tidak bisa diakses ip servernya. Bagaimana solusinya? Tks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>