Current time: 04-25-2024, 04:26 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problema con FTP y Administrador de Archivos
Author Message
amorales Offline
Junior Member
*

Posts: 29
Joined: Nov 2008
Reputation: 0
Post: #1
Problema con FTP y Administrador de Archivos
Hola a todos.

Tras instalar ISPCP he comprobado que no puedo acceder a las cuentas FTP y al adminsutrador de archivos.

He añadido un usuario reseller y un dominio. Tras esto, he cambiado los DNS de mi dominio para que apunte a mi servidor. Al entrar en midominio.com veo la pagina cargada por defecto por ispcp.

He añadido un usuario FTP. ftp@midominio.com
Al darle al administrador de archivos introduzo el usuario y contraseña y se queda la pantalla bloqueada en blanco.

Mi problema se parece a este pero sin poder acceder con un cliente FTP (tipo Filezilla):
http://www.isp-control.net/forum/showthr...p?tid=3870

Después he probado conectarme via cliente FTP, con Filezilla y he probado tanto en modo pasivo como en activo.
Introduzco la dirección del servidor: Ip Servidor o http://ftp.midominio.com, el usuario ftp@midominio.com y la contraseña (el puerto por defecto en blanco o el 21)

El error que me da el filezilla: (cambio los datos reales a midominio.com)
Code:
Estado:    Resolviendo la dirección IP de ftp.midominio.com
Estado:    Conectando a  (IP de midominio.com)...
Estado:    Conexión establecida, esperando el mensaje de bienvenida...
Respuesta:    220 ProFTPD 1.3.1 Server (Debian)
Comando:    USER ftp@midominio.com
Respuesta:    331 Password required for ftp@midominio.com
Comando:    PASS **********
Respuesta:    530 Login incorrect.
Error:    No se pudo conectar al servidor

¿Que puede pasar?

Gracias de antemano.
Este problema se relaciona con el final del siguiente post:
http://www.isp-control.net/forum/showthr...662&page=3

Gracias.
(This post was last modified: 11-23-2008 12:57 PM by amorales.)
11-23-2008 12:32 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #2
RE: Problema con FTP y Administrador de Archivos
Buenas,
--------------------------------------------------
Respuesta: 530 Login incorrect.
Error: No se pudo conectar al servidor
---------------------------------------------------
Ese problema es por que no ha instalado el siguiente paquete o no esta configurado en los modulos de proftp.conf

Prueba a reinstalarlo
apt-get install proftpd-mysql
Luego mira que los modulos mysql se encuentren no comentados en el archivo
/etc/proftpd/modules.conf

LoadModule mod_sql.c
LoadModule mod_sql_mysql.c

Y reinicia el servicio de ftp
11-23-2008 07:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amorales Offline
Junior Member
*

Posts: 29
Joined: Nov 2008
Reputation: 0
Post: #3
RE: Problema con FTP y Administrador de Archivos
Buenas.

Gracias por tu rapida contestación.

He hecho lo que me dices y sigue sin funcionar.

Después he reiniciado el servidor ftp: /etc/init.d/proftpd restart

Pero nada, el acceso mediante cliente FTP sigue sin funcionar y el administrador de archivos se sigue quedando en blanco.

PD: He velto a crear un usuario ftp de nuevo por si acaso pero tampoco.

Saludos.
11-23-2008 08:54 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #4
RE: Problema con FTP y Administrador de Archivos
Pega la configuracion proftp.conf,
El problema es que no enganchas a la base de mysql para validar usuario y pass
11-23-2008 09:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amorales Offline
Junior Member
*

Posts: 29
Joined: Nov 2008
Reputation: 0
Post: #5
RE: Problema con FTP y Administrador de Archivos
Esta es la configuración de proftpd:
Code:
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

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

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         on

ServerName                      "HSERVER"
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

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts                  49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress             1.2.3.4

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            proftpd
Group                           nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask                           022  022
# Normally, we want files to be overwriteable.
AllowOverwrite                  on

# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd              off

# This is required to use both PAM-based authentication and local passwords
# AuthOrder                     *mod_auth_pam.c mod_auth_unix.c

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile                   off

# Choose a SQL backend among MySQL or PostgreSQL.
# Both modules are loaded in default configuration, so you have to specify the backend
# or comment out the unused module in /etc/proftpd/modules.conf.
# Use 'mysql' or 'postgres' as possible values.
#
<IfModule mod_sql.c>
SQLBackend                     mysql
</IfModule>

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf

#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User                                ftp
#   Group                               nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias                   anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser on ftp
#   DirFakeGroup on ftp
#
#   RequireValidShell           off
#
#   # Limit the maximum number of anonymous logins
#   MaxClients                  10
#
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin                        welcome.msg
#   DisplayFirstChdir           .message
#
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
#
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask                           022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
#
# </Anonymous>
11-23-2008 10:13 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #6
RE: Problema con FTP y Administrador de Archivos
Te faltan un huevo de cosas, no tienes activado ningun modulo sql, conexion etc...
Te mando 2 archivos, saca renombra los tuyos y pon estos 2, configura el nombre de tu servidor y el pass a mysql y renicias el ftp


Attached File(s)
.txt  modules.conf.txt (Size: 1.05 KB / Downloads: 49)
.txt  proftpd.conf.txt (Size: 7.86 KB / Downloads: 71)
(This post was last modified: 11-23-2008 10:42 PM by kurgans.)
11-23-2008 10:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amorales Offline
Junior Member
*

Posts: 29
Joined: Nov 2008
Reputation: 0
Post: #7
RE: Problema con FTP y Administrador de Archivos
Juassss ..... vaya tela.

Voy a hacerlo a ver que pasa.

Gracias!
11-23-2008 10:48 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #8
RE: Problema con FTP y Administrador de Archivos
(11-23-2008 10:31 PM)kurgans Wrote:  Te faltan un huevo de cosas, no tienes activado ningun modulo sql, conexion etc...
Te mando 2 archivos, saca renombra los tuyos y pon estos 2, configura el nombre de tu servidor y el pass a mysql y renicias el ftp

(11-23-2008 10:48 PM)amorales Wrote:  Juassss ..... vaya tela.

Voy a hacerlo a ver que pasa.

Gracias!

Ojo, eso es para que te sirva de guia, mira los modulos sql, de conexion, ruta etc...
lo demas lo mismo no lo tienes en uso
11-23-2008 10:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amorales Offline
Junior Member
*

Posts: 29
Joined: Nov 2008
Reputation: 0
Post: #9
RE: Problema con FTP y Administrador de Archivos
He guardado mis anteriores archivos por si acaso.

He cambiado los dos archivos segun los tuyos.

En proftp.conf he cambiado el nombre de mi server
Que es el mismo de lo que obtengo de >hostname.

Y después he cambiado la contraseña de Mysql. La que le puse en la configuración de ISPCP.
Code:
# ispCP SQL Managment
# Activate for proftpd >= 1.3
#SQLBackend                 mysql
SQLAuthTypes               Crypt
SQLAuthenticate            on
SQLConnectInfo             ispcp@localhost vftp passbd "MICONTRASEÑA"
SQLUserInfo                ftp_users userid passwd uid gid homedir shell
SQLGroupInfo               ftp_group groupname gid members
SQLMinUserUID              2000
SQLMinUserGID              2000

¿Hay que cambiar algo más?. Ahora directamente no se puede conectar al servidor.
11-23-2008 11:16 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #10
RE: Problema con FTP y Administrador de Archivos
No te da error al iniciar el servicio?

Tambien puede ser error en la sql, abre la tabla ispcp.ftp_users a ver si los tienes creados, el ftp lee sobre ella directamente

Ese config esta bien yo lo puse en marcha de aqui del foro con sus modulos
http://www.isp-control.net/ispcp/browser...oftpd.conf

Si te da problemas quita el proftpd y vuelve a reinstalarlo
apt-get install proftpd proftpd-mysql

Quita el IPV6 ponlo en off

Que te vuelva a generar los conf no sea que tengas un baile y tu usuario o no sea vftpd
(This post was last modified: 11-23-2008 11:41 PM by kurgans.)
11-23-2008 11:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)