Blog Archive
About Me
- Fath-Yie
- Assalamu'alaikum...... hey ne fathurrohman, biasa di panggil fathur seh sama temen-temen tuh.... sekarang gW sekolah di SMKN 1 CIREBON, nTu lho sekolah yang disebuat sebagai Rintisan Sekolah Berstandar Internasional (SBI)..he..he.. Upz...kalo pengen tw gw lebih lengkap kalian tinggal contact saya aja yah... Blog: fath-yie.co.cc E-mail N Facebook: fath_crocodile@yahoo.com Friendster: fath.yie@gmail.com oYa, 1 lagi...add YM gW yah ID'a: fath_crocodile
Tampilkan postingan dengan label Konfigurasi Server. Tampilkan semua postingan
Tampilkan postingan dengan label Konfigurasi Server. Tampilkan semua postingan
24 April 2008
Instalasi FTP Server dengan ProFTPd
Cara Instalasi FTP server dengan Proftpd adalah :
1. Download paket proftpd-1.2.10.tar.gz dari situs www.proftpd.org
2. Ekstrak ke direktori tertentu:
[root@localhost]# tar zxvf proftpd-1.2.10.tar.gz -C /usr/local/proftpd
3. Masuk Ke direktori baru hasil ekstrak:
[root@localhost]# cd proftpd-1.2.10
4..Kompile dan install:
/configure
make
make install
4. Buat user yang akan menjalankan proftpd:
[root@localhost proftpd-1.2.10]# useradd proftpd -s /dev/null
5. Buat home directory untuk anonymous
[root@localhost proftpd-1.2.10]# mkdir /home/ftp
6. Edit file konfigurasi proftpd dengan text editor
[root@localhostproftpd-1.2.10]# vi /usr/local/etc/proftpd.conf
7. Contoh file konfigurasi proftpd.conf untuk basic ftp server:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "latihan"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group proftpd
# Normally, we want files to be overwriteable.
AllowOverwrite on
# A basic anonymous configuration, no upload directories.
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
DenyAll
8. Jalankan proftpd:
[root@localhost proftpd-1.2.10]# /usr/local/sbin/proftpd
10. Jika ada error, selalu lakukan cek di /var/log/messages
[root@localhostproftpd 1.2.10]# tail /var/log/messages
11. Jika tidak ada error, lakukan test dengan mencoba ftp server baru tersebut
[root@localhost proftpd-1.2.10]# ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.4 Server (latihan) [t]
Name (localhost:root):
331 Password required for
Password:
230 User wawawawa logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
12. Lakukan test juga terhadap konfigurasi anonymous ftp server.
[root@localhostproftpd-1.2.10]# ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.4 Server (latihan)
Name (localhost:root): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Jika output yang keluar adalah seperti di atas ftp server telah berjalan dengan baik .
Langganan:
Postingan (Atom)