Pages : 1
#1 Le 04/07/2007, à 16:38
- flojacko
Proftpd et serveur a distance
Bonjour à tous, ce post ne concerne pas ubuntu directement mais debian, je ne savait pas trop ou me tourner alors je suis venut ici.
J'ai suivit le tutorial pour installer proftpd-mysql : http://doc.ubuntu-fr.org/proftpd_et_mysql
La base de donnée mysql se trouve sur la même machine. Le problème c'est que quoi je je fasse quand j'essaye de me connacter il me renvoit une erreur 530 (login)
Voici ma ligne pour ajouter un user:
INSERT INTO `ftpuser` ( `id`, `userid`, `passwd`, `uid`, `gid`, `homedir`, `shell`, `count`, `accessed` , `modified`, `LoginAllowed` ) VALUES ('', 'ftpfull', ENCRYPT('************'), '5500', '5500', '/srcds/hl2mp', '/bin/false', '', '', '', 'true' );
Tout ce passe bien jusque la, je reboot proftpd, et quand jessaye de my connecter soit par firefox soit filezilla tous les 2 me renvoient l'erreur 530 :s
J'ai bien placer cet user dans le groupe "admin_full"
Voici mon proftpd.conf si ça peut aider:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Full Dimension"
ServerType standalone
DeferWelcome off
DefaultRoot ~
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Uncomment this if you would use TLS module:
#TLSEngine on
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 21
# 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 nobody
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
# 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.
#DelayEngine off
# 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>
# Mod MySQL
# =========
# Les mots de passe sont cryptes dans la base avec la fonction ENCRYPT (MySQL)
SQLAuthTypes Crypt
SQLAuthenticate users* groups*
# Modifiez cette ligne selon l'utilisateur et le mot de passe definit plutot
SQLConnectInfo proftpd@localhost root *****
# On donne a ProFTPd le nom des colonnes de la table usertable
SQLUserInfo ftpuser userid passwd uid gid homedir shell
SQLUserWhereClause "LoginAllowed = 'true'"
# On donne a ProFTPd le nom des colonnes de la table "grouptable"
SQLGroupInfo ftpgroup groupname gid members
# Creer le repertoire home de l'utilisateur si il n'existe pas
SQLHomedirOnDemand on
# Met a jour les compteurs a chaque connection d'un utilisateur
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser
#Met a jour les compteurs a chaque upload ou download d'un utilisateur
SQLLog STOR,DELE modified
SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser
# Mod quota
# =========
QuotaEngine off
QuotaDirectoryTally on
QuotaDisplayUnits Mb
QuotaShowQuotas on
# Definit les requetes SQL pour que ProFTPd recupere les infos sur les quotas
SQLNamedQuery get-quota-limit SELECT "name, quota_type, par_session, limit_type, bytes_up_limit, bytes_down_limit, bytes_transfer_limit, file$
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_up_total, bytes_down_total, bytes_transfer_total, files_up_total, files_down_to$
SQLNamedQuery update-quota-tally UPDATE "bytes_up_total = bytes_up_total + %{0}, bytes_down_total = bytes_down_total + %{1}, bytes_transfer_t$
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" ftpquotatotal
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
# Gestion des logs
# ================
# Enregistre les requetes SQL dans /var/log/proftpd/mysql.log
SQLLogFile /var/log/proftpd/mysql.log
# Enregistre les authentifications
LogFormat auth "%v [%P] %h %t \"%r\" %s"
ExtendedLog /var/log/proftpd/auth.log AUTH auth
# Enregistre les acces aux fichiers
LogFormat write "%h %l %u %t \"%r\" %s %b"
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
# Recupere le nom a partir de l'ip de la machine de l'utilisateur ( resolution DNS )
IdentLookups on
Tous les mots de passe je les aient crypté par des ***
Tous le mot de passe sont justent.
Voila j'espere que l'on pourrat m'aider sur ce point, bonne journée.
Hors ligne
#2 Le 04/07/2007, à 16:39
- HymnToLife
Re : Proftpd et serveur a distance
/bin/false comme shell, je pense que c'est normal que ça ne marche pas... Essaie avec /bin/bash
- Rodrigue, as-tu du cœur ?
- Non, mais j'ai du pique !
Hors ligne
#3 Le 04/07/2007, à 18:07
- flojacko
Re : Proftpd et serveur a distance
Je vient d'essayer, j'ai tout refait, mais toujours le même problème
Hors ligne
#4 Le 05/07/2007, à 10:34
- flojacko
Re : Proftpd et serveur a distance
up
C'est assez urgent, je n'ai pas beaucoup de temps et le ftp servirat également à d'autres personnes que moi
Hors ligne
#5 Le 05/07/2007, à 11:31
- flojacko
Re : Proftpd et serveur a distance
Probleme résolu, je ne sait pas ce que j'ai fait mais ça marche. Merci pour le bash
Hors ligne
Pages : 1