jump to navigation

Install Proftpd on OpenSUSE 11 June 9, 2009

Posted by skleton in OpenSUSE.
trackback

ProFTPD adalah free FTP daemon yang didistribusikan di bawah lisensi GNU Public. ProFTPD merupakan aplikasi FTP server yang terkenal akan kehandalannya. ProFTPD adalah ftp server yang dibuat untuk Unix dan keluarga unix, seperti Linux, OpenBSD, FreeBSD, atau yang lainnya, dan tidak mendukung sistem operasi Win****.

Ok, cukup basa basi nya..langsung aja download file tar ball nya di:
rudhy:~ #wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2rc1.tar.gz
Sebelum melakukan instalasi, pastikan kita menginstall paket dependency nya:

rudhy:~ #yast -i gcc gcc-c++
setelah selesai menginstall dependency nya lalu extract file proftpd:
rudhy:~ #tar zxvf proftpd-1.3.2rc1.tar.gz
rudhy:~ #cd proftpd-1.3.2rc1

setelah berada di folder proftpd-1.3.2rc1 maka lakukan konfigurasi proftpd nya:
rudhy:~/proftpd-1.3.2rc1#./configure -prefix=/usr/local/proftpd
rudhy:~/proftpd-1.3.2rc1#make
rudhy:~/proftpd-1.3.2rc1#make install

Instalation complete..!!

Setelah itu kita akan membuat user dan group proftpd
rudhy:~ #groupadd proftpd
rudhy:~ #useradd proftpd -s /dev/null

dan juga membuat direktori untuk ftp
rudhy:~ #mkdir /home/ftp
Setelah itu edit beberapa baris untuk settingan konfigurasi proftpd kita:
rudhy:~ # nano /usr/local/proftpd/etc/proftpd.conf
# 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 “ProFTPD SUSE 11”
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Don’t use IPv6 support by default.
UseIPv6 off

# 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 under which the server will run.
User proftpd
Group proftpd

# To cause every FTP user to be “jailed” (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite on

# Bar use of SITE CHMOD by default

DenyAll

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire section.

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
DisplayChdir .message

# Limit WRITE everywhere in the anonymous chroot

AllowAll

# Limit STOR everywhere in the anonymous user

AllowAll
IgnoreHidden on

Setelah selesai, save file tsb dan jalankan service proftpd:
rudhy:~ # /usr/local/proftpd/sbin/proftpd
Apakah service sudah berjalan dapat menjalankan perintah ini:
rudhy:~ # ps aux | grep ftp
proftpd 24151 0.0 0.0 2940 556 ? Ss Jun06 0:00 proftpd:
(accepting connections)
root 30718 0.0 0.0 2120 644 pts/1 S+ 05:25 0:00 grep ftp

Tes anonymous ftp (di command prompt windows):
C:\>ftp 208.99.198.180
Connected to 208.99.198.180.
220 ProFTPD 1.3.2rc1 Server (ProFTPD Open Suse 11) [208.99.198.180]
User (208.99.198.180:(none)): ftp
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
rudhy.txt
Acc ICQ.txt
folder
DNSgw.txt
lucu.jpeg
acc wowtutorial.oeg.txt
tes.txt
226 Transfer complete
ftp: 88 bytes received in 0.06Seconds 1.40Kbytes/sec.

Tes ftp localhost
============
rudhy:~ # ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.3.2 Server (ProFTPD SUSE 11) [127.0.0.1]
Name (localhost:root): blackbox
331 Password required for blackbox
Password:
230 User blackbox logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/blackbox" is the current directory
ftp>

Finishing FTP Server(proftpd instalasi)
==========================================
#chown ftp.ftp -R ftp
setelah itu cek dengan command
#ls -l
#ps aux | grep ftp
matikan proses yg sedang jalan
#kill -9 1502
#ps aux | grep ftp
#/usr/local/proftpd/sbin/proftpd
Note:Restart proftpd
#killall -9 /usr/local/proftpd/sbin/proftpd
#/usr/local/proftpd/sbin/proftpd
To uninstall the server do the following:
#killall -9 proftpd
#rm -rf /usr/local/proftpd

proftpd.conf download file:
ftp://ftp.satanix.org/proftpd.conf

Advertisements

Comments»

1. skleton - June 22, 2009

nice tutor..:)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: