Proftpd (proftpd.conf)
Aqui está um arquivo proftpd.conf pronto para dar mais segurança ao seus dados. Este está configurado para que os users do proftpd possam apenas trabalhar em seus devidos diretórios $HOME.
A linha que faz isso é a:
DefaultRoot ~
A linha que faz isso é a:
DefaultRoot ~
# ProFTPD Configuration # # Configuração do ProFTPD # ServerName "Servidor Local de Macho (FTP)" #ServerName "ProFTPD - Instalação Default" ServerType standalone DefaultServer on ScoreboardPath /var/run DeferWelcome on ServerAdmin root@localhost SyslogFacility AUTH Serverident on "Bem-Vindo ao Servidor de FTP" # Port 21 (ftp standard) is used in case of standalone more # # Utiliza-se o port 21 (padrão 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 padrão para prevenir que novos diretórios e # arquivos sejam graváveis pelo grupo ou outros usuários # 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 instâncias à # 30. Caso se queira permitir mais de 30 conexões simultâneas, 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 opção, se habilitada, faz com que os usuários não consegam acessar nada # fora da sua arvore do diretório home. LEIA A DOCUMENTAÇÃO! # DefaultRoot ~ # User and Group the server will run as # # Usuário e grupo para o servidor # User nobody Group nobody <Directory /*> AllowOverwrite no </Directory> # Default configuration for anonymous ftp, without an incoming directory. # To activate, just uncomment it. # # Configuração básica para ftp anônimo, sem diretório para recepção # de arquivos # Para ativar, descomentar. # #<Anonymous /var/ftp/default> # 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 opção habilita o usuário 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. # # # # número máximo de logins anônimos # # Descomente um. # MaxClients 10 "Número máximo de clientes, tente mais tarde." # MaxClients 10 "No more clients allowed at this time. Try again latter." # # # No more then 2 connections per client # # Uncomment one. # # # # No máximo duas conexões por cliente # # Descomente um. # MaxClientsPerHost 2 "Você já está com muitas conexões simultâneas." # 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 conexão e .message mostrado para cada # # diretório acessado. # # # DisplayLogin welcome.msg # DisplayFirstChdir .message # AccessGrantMsg "Acesso anônimo aceito para %u." # AccessGrantMsg "Anonymous access granted for %u." # # # Write is denied on the anonymous chroot # # # # Limite gravação no chroot anônimo # # # <Limit WRITE> # DenyAll # </Limit> # #</Anonymous>