Skip to content

Instantly share code, notes, and snippets.

@sergiohidalgo
Last active April 6, 2018 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sergiohidalgo/816ae6d3754e7dda8eb6fc0aa6c6ec12 to your computer and use it in GitHub Desktop.
Save sergiohidalgo/816ae6d3754e7dda8eb6fc0aa6c6ec12 to your computer and use it in GitHub Desktop.
Generar accesos FTP en Ubuntu con proftpd

Instalación

apt-get update
apt-get install proftpd

Ediar archivo de configuración

# Archivo a editar
nano /etc/proftpd/proftpd.conf

# Reiniciar servicio
sudo service proftpd restart

Configuraciones proftpd.conf

Agregar configuraciones para restringir el accesos a los archivos del servidor

<Directory / >
  <Limit READ RMD DELE WRITE>
    DenyAll
  </Limit>
</Directory>

Agregar nuevo usuario FTP

En este caso todos los sitios web son propiedad del usuario forge

<Directory /home/lfi/>
  <Limit ALL READ RMD DELE WRITE DIRS>
    AllowUser lfi
    DenyAll
  </Limit>
</Directory>


<Directory /home/forge/iframe.uandes.lfi.cl/>
  <Limit ALL READ RMD DELE WRITE DIRS>
    AllowUser lfi
    DenyAll
  </Limit>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment