
Redhat,Centos,Fedora 5,9 Vsftp FTP sunucu install
File Transfer Protocol (FTP) günümüzde internet üzerinde kullanılan en eski ve en bilinen protokollerden biridir.FTP nin amacı kullanıcıların, işletim sistemleri arasındaki dosya paylaşım sistemlerindeki farkları bilmesine gerek kalmadan güvenli ve basit dosya paylaşımı yapabilmelerini sağlamaktır.FTP Kurulumunu kısaca anlatmaya çalışıcam.
[root@centostest ~]# yum install vsftpd
[root@centostest ~]# /etc/init.d/vsftpd start
[root@centostest ~]# /etc/init.d/vsftpd stop
[root@centostest ~]# /etc/init.d/vsftpd restart
Vsftpd sunucusunun ftp portu’nun dinleyip dinlemediğini öğrenelim
[root@centostest ~]# netstat -a | grep ftp tcp 0 0 *:ftp *:* LISTEN
Vsftpd Ayarlayalım
/etc/rc.d/init.d/vsftpd > vsftpd Servisi Daemon’u
/etc/vsftpd/vsftpd.conf > vsftpd Konfigürasyon dosyası
/etc/vsftpd.ftpusers > vsftpd sunucusuna login olmasına izin VERİLMEYEN kullanıcıların listesi. Bu kullanıcılardan biri de root dur.
/etc/vsftpd.user_list > Bu liste hem yasaklanan kullanıcılar, hem de ftp hizmeti kullanmasına izin verilen kullanıcılar olarak ayarlanabilir.
/etc/vsftpd/vsftpd.conf dosyası içindeki
userlist_deny
direktifine “yes” değeri verilirse, bu liste yasaklı kullanıcılar listesi olur. “no” değeri verilirse izin verilen kullanıcılar listesi olur.
/var/ftp/ > vsftpd tarafından kullanılan FTP ana dizinidir.
/var/ftp/pub dizini anonim erişimler içindir. Bu diziler herkes tarafından okunabilir, fakat yalnızca root tarafından yazılabilir.
vsftpd.conf dosyasını düzenleyelim
[root@centostest ~]# nano /etc/vsftpd/vsftpd.conf
# Allow anonymous FTP? (Beware – allowed by default if you comment this out). anonymous_enable=NO
Uncomment this to allow local users to log in. local_enable=YES
# Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the
FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES
FTP Kurulduğunda root klasörünün gizlenmesi
# You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_list_enable=YES # (default
follows) #chroot_list_file=/etc/vsftpd/chroot_list # chroot_local_user=YES
# You may activate the “-R” option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as “ncftp” and
“mirror” assume # the presence of the “-R” option, so there is a strong case for enabling it. #ls_recurse_enable=YES
FTP kurulumu bittikten sonra ftp kullanıcısı yaratalım.
Local’den windowsn’a bağlanmak için samba servisini kuruyoruz kurulum bittikten sonra aşağıdaki işlemleri yapıyoruz.
[root@centostest ~]# useradd ftptest
[root@centostest ~]# smbpasswd -a ftptest
New SMB password: Retype new SMB password:
FTP Karşılama Mesajı eklemek için
# You may fully customise the login banner string: ftpd_banner=FTP HOSGELDINIZ.
Komut Satırından FTP erişim
[root@centostest ~]# ftp 192.168.2.88
Connected to 192.168.2.88. 220 FTP HOSGELDINIZ. 530 Please login with USER and PASS. 530 06:18 FTPTEST drwxr-xr-x 2 503 503 4096 Apr 11 06:10 TEST 226 Directory send OK. ftp> bye 221 Goodbye.
Windows’tan FTP Erişim
ftp://192.168.2.88
windows’dan Samba ile FTP klasörüne Ulaşım
\\192.168.2.88\ftptest
Evet arkadaşlar FTP kurulumu Bitmiştir Penguen her zaman yanınızda olsun….:)