Instalar PROFTPD Ubuntu (Configuracion Basica)

 

Configuracion BASICA PROFTPD

 

Instalamos proftpd.

sudo apt-get install proftpd

 

Editamos nuestro fichero de configuracion:

sudo nano /etc/proftpd/proftpd.conf

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         on
# If set on you can experience a longer connection delay in many cases.
IdentLookups                    off

ServerName                      "Ubuntu"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/

# Use this to jail all users in their homes
# DefaultRoot                     ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
RequireValidShell               off

# Port 21 is the standard FTP port.
Port                            21
... 

Otros parámetros:
  • ServerName: Especifica el nombre del servidor. Este nombre se muestra al conectar.
  • TimeoutIdle: El tiempo que mantiene la conexion activa el servidor, en el momento que el usuario no muestra actividad.
  • DefaultRoot: Indica la carpeta Raiz
  • Port: El puerto del servidor FTP
  • PassivePorts: El rango que tenemos establecidos para la conexion en modo pasivo.
  • MaxInstances: El maximo numero de conexiones.

 

Directorio Raíz

 

DefaultRoot                     ~

~  -> Esto significa que el usuario esta limitado a su carpeta personal /home/...

Para que esto funcione lo descomentamos. La otra opcion es que indiquemos una carpeta a la que se conectaran todos nuestros usuarios

DefaultRoot /ftp

*Cada vez que realizemos un cambio reiniciamos el servicio.


Creacion de Usuarios

 

Añadimos el usuario, «backs«.

useradd --shell /bin/false backs

Create the home directory of our user «backs«.

mkdir /home/backs

Change the ownership of that directory to the user and group «backs«.

chown backs:backs /home/backs/

Set a password for the user «backs«.

passwd backs



COMANDOS UTILES:

ftpwho (Quien esta conectado)
ftpstats (Estadísticas)


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>