Selamat datang, di blog cupu ini, mau ngasih tau aja klo isinya seputar networking tapi ngga cuma itu juga.. jadi cek sendiri ya..
ohya CMIIW klo tulisannya rada ngga jelas dan biasakan say Thanks klo bermanfaat.
:* :* :*

Wednesday, 16 March 2011

ProFTPD installation

proFTPD installation

28 Oct
1. install proFTPD
ateam# cd /usr/ports/ftp/proftpd
ateam# make install clean
2. menjalankan proFTPD
ateam# /usr/local/etc/rc.d/proftpd onerestart
proftpd not running?
Starting proftpd.
3. mengedit file konfigurasi proFTPD
ateam# ee /usr/local/etc/proftpd.conf
#
# For more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# This is a basic ProFTPD configuration file (rename it to
# ‘proftpd.conf’ for actual use.  It establishes a single serv
# and a single anonymous login.  It assumes that you have a us
# “nobody” and “ftp” for normal operation and anon.
ServerName                      “ProFTPD Default Installation”
ServerType                      standalone
DefaultServer                   on
ScoreboardFile          /var/run/proftpd/proftpd.scoreboard
# Port 21 is the standard FTP port.
Port                            21
# Use IPv6 support by default.
UseIPv6                         on
# Umask 022 is a good standard umask to prevent new dirs and f
# from being group and world writable.
Umask                           022
# To prevent DoS attacks, set the maximum number of child proc
# to 30.  If you need to allow more than 30 concurrent connect
# at once, simply increase this value.  Note that this ONLY wo
# in standalone mode, in inetd mode you should use an inetd se
# that allows you to limit maximum number of processes per ser
# (such as xinetd).
MaxInstances                    30
CommandBufferSize       512
# Set the user and group under which the server will run.
User                            nobody
Group                           nogroup
# To cause every FTP user to be “jailed” (chrooted) into their
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite          on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories.  If
# want anonymous users, simply delete this entire <Anonymous>
##############################################################
#
# Uncomment lines with only one # to allow basic anonymous acc
#
##############################################################
<Anonymous ~ftp>
User                            ftp
Group                           ftp
### We want clients to be able to login with “anonymous” as
UserAlias                       anonymous ftp
### Limit the maximum number of anonymous logins
MaxClients                      10
### We want ‘welcome.msg’ displayed at login, and ‘.message’
### in each newly chdired directory.
#DisplayLogin                   welcome.msg
#DisplayFirstChdir              .message
### Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
#   DenyAll
# </Limit>
</Anonymous>
“/usr/local/etc/proftpd.conf” 80 lines, 2454 characters
4. menambahkan user pfoFTPD
ateam# adduser
Username: ftp
Full name: FTP user
Uid (Leave empty for default):
Login group [ftp]:
Login group is ftp. Invite ftp into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin nologin nologin) [sh]: nologin
Home directory [/home/ftp]: /home/ftp
Home directory permissions (Leave empty for default): +rwx
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]:
Username   : ftp
Password   : <disabled>
Full Name  : FTP user
Uid        : 1011
Class      :
Groups     : ftp
Home       : /home/ftp
Home Mode  : +rwx
Shell      : /usr/sbin/nologin
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (ftp) to the user database.
Add another user? (yes/no): no
Goodbye!
ateam# /usr/local/etc/rc.d/proftpd onerestart
Stopping proftpd.
Waiting for PIDS: 59255.
Starting proftpd.

No comments:

Post a Comment