terça-feira, 11 de março de 2008

Configuração básica de FTP no Linux

Abaixo vemos um modelo do arquivo de configuração do PROFTP,
depois de instalado no linux segue o arquivo que contém as configurações.


# ProFTPD Configuration
#
# Configurao do ProFTPD
#

ServerName "ProFTPD - Default Instalation"
#ServerName "ProFTPD - Instalao Default"
ServerType standalone
DefaultServer on
ScoreboardPath /var/run
DeferWelcome on
ServerAdmin root@localhost
SyslogFacility AUTH

# Port 21 (ftp standard) is used in case of standalone more
#
# Utiliza-se o port 21 (padro ftp) no caso de funcionamento standalone
#
Port 21

# Umask 022 is a good default value to prevent new directories and
# files from being writable by the group or by other users
#
# Umask 022 um bom padro para prevenir que novos diretrios e
# arquivos sejam gravveis pelo grupo ou outros usurios
#
Umask 022

# To prevent DoS attacks, the max number of instances is limited to 30.
# If one wants to allow more then 30 simultaneous connectionva, just
# increment this value. This directive only applies if running in
standalone
# mode
#
# Para previnir ataques do tipo DoS, limita-se o numero de instncias
# 30. Caso se queira permitir mais de 30 conexes simultneas,
simplesmente
# aumenta-se este valor. Esta diretiva s se aplica ao funcionamento
# standalone
MaxInstances 30

#
# This option, if enabled, will make the users unable to access anything
# outside their home directory tree. READ THE DOCS!
#
# Esta opo, se habilitada, faz com que os usurios no consegam acessar
nada
# fora da sua arvore do diretrio home. LEIA A DOCUMENTAO!
#
# DefaultRoot ~ !root
#

# User and Group the server will run as
#
# Usurio e grupo para o servidor
#
User nobody
Group nobody


AllowOverwrite no


# Default configuration for anonymous ftp, without an incoming directory.
# To activate, just uncomment it.
#
# Configurao bsica para ftp annimo, sem diretrio para recepo
# de arquivos
# Para ativar, descomentar.
#

User ftp
Group ftp
DirFakeUser on
DirFakeGroup on
#
##
## This option will enable the ftp user without it having to have it's
shell
## listed on the /etc/shells file
##
## Esta opo habilita o usurio ftp sem que mesmo precise ter sua shell
listada
## no arquivo /etc/shells
##
# RequireValidShell off
#
# ftp = anonymous
UserAlias anonymous ftp
#
# # max anonymous logins at one time.
# # Uncomment one.
# #
# # nmero mximo de logins annimos
# # Descomente um.
# MaxClients 30 "Nmero mximo de clientes, tente mais tarde."
# MaxClients 30 "No more clients allowed at this time. Try again
latter."
#
# # No more then 2 connections per client
# # Uncomment one.
# #
# # No mximo duas conexes por cliente
# # Descomente um.
# MaxClientsPerHost 2 "Voc j est com muitas conexes simultneas."
# MaxClientsPerHost 2 "Too many simultaneous connections from your
host."
#
# # welcome.msg is showed uppong connetiona, and .message at each
directory
# # accessed
# #
# # welcome.msg mostrado na conexo e .message mostrado para cada
# # diretrio acessado.
# #
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
# AccessGrantMsg "Acesso annimo aceito para %u."
# AccessGrantMsg "Anonymous access granted for %u."
#
# # Write is denied on the anonymous chroot
# #
# # Limite gravao no chroot annimo
# #

DenyAll

#