Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/01/2007, à 00:54

titirock

[Résolu] [Pure-FTPd]Erreur : /Cannot exec /usr/sbin/pure-ftp?????

Bonsoir à tous!

J'a installé Pure-ftpd depuis les paquets Debian j'ai configuré quelques utilisateurs virtuels pour tester, tout fonctionne. J'ai voula ajouter la connexion à MySQL pour les mots de passe et voilà ce que le serveur me répond quand j'essaie de me connecter :

/usr/sbin/pure-ftpd-wrapper: Cannot exec /usr/sbin/pure-ftpd: No such file or directory at /usr/sbin/pure-ftpd-wrapper line 174.

je ne comprends pas pourquoi il n'arrive plus à lire ce fichier???

Merci d'avance pour votre aide


PS mon syslog contient ça :

Jan  8 23:20:18 debian pure-ftpd: (?@?) [ERROR] Unknown authentication method: mysql:/etc/pure-ftpd/db/mysql.conf
Jan  8 23:20:34 debian pure-ftpd-wrapper[5035]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:20:38 debian pure-ftpd-wrapper[5036]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:20:42 debian pure-ftpd-wrapper[5037]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:24:43 debian pure-ftpd-wrapper[5059]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:24:47 debian pure-ftpd-wrapper[5060]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:24:51 debian pure-ftpd-wrapper[5062]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:24:55 debian pure-ftpd-wrapper[5063]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:24:59 debian pure-ftpd-wrapper[5064]: connect from 192.168.8.7 (192.168.8.7)
Jan  8 23:25:02 debian pure-ftpd-wrapper[5065]: connect from 192.168.8.7 (192.168.8.7)

et mysql.conf pour pure-ftpd (c'est le fichier par défaut sur Debian etch)

##############################################
#                                            #
# Sample Pure-FTPd Mysql configuration file. #
# See README.MySQL for explanations.         #
#                                            #
##############################################


# Optional : MySQL server name or IP. Don't define this for unix sockets.

#MYSQLServer     127.0.0.1


# Optional : MySQL port. Don't define this if a local unix socket is used.

#MYSQLPort       3306


# Optional : define the location of mysql.sock if the server runs on this host.

MYSQLSocket      /var/run/mysqld/mysqld.sock


# Mandatory : user to bind the server as.

MYSQLUser       pureftpd


# Mandatory : user password. You must have a password.

MYSQLPassword   passftp123


# Mandatory : database to open.

MYSQLDatabase   pureftpd


# Mandatory : how passwords are stored
# Valid values are : "cleartext", "crypt", "md5" and "password"
# ("password" = MySQL password() function)
# You can also use "any" to try "crypt", "md5" *and* "password"

MYSQLCrypt      md5


# In the following directives, parts of the strings are replaced at
# run-time before performing queries :
#
# \L is replaced by the login of the user trying to authenticate.
# \I is replaced by the IP address the user connected to.
# \P is replaced by the port number the user connected to.
# \R is replaced by the IP address the user connected from.
# \D is replaced by the remote IP address, as a long decimal number.
#
# Very complex queries can be performed using these substitution strings,
# especially for virtual hosting.


# Query to execute in order to fetch the password

MYSQLGetPW      SELECT password FROM users WHERE User="\L"


# Query to execute in order to fetch the system user name or uid

MYSQLGetUID     SELECT uid FROM users WHERE User="\L"


# Optional : default UID - if set this overrides MYSQLGetUID

MYSQLDefaultUID 1001


# Query to execute in order to fetch the system user group or gid

MYSQLGetGID     SELECT gid FROM users WHERE User="\L"


# Optional : default GID - if set this overrides MYSQLGetGID

MYSQLDefaultGID 1001


# Query to execute in order to fetch the home directory

MYSQLGetDir     SELECT dir FROM users WHERE User="\L"


# Optional : query to get the maximal number of files 
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="\L"


# Optional : query to get the maximal disk usage (virtual quotas)
# The number should be in Megabytes.
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="\L"


# Optional : ratios. The server has to be compiled with ratio support.

# MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="\L"
# MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="\L"


# Optional : bandwidth throttling.
# The server has to be compiled with throttling support.
# Values are in KB/s .

# MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L"
# MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L"

# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
# 1) You know what you are doing.
# 2) Real and virtual users match.

# MySQLForceTildeExpansion 1


# If you upgraded your tables to transactionnal tables (Gemini,
# BerkeleyDB, Innobase...), you can enable SQL transactions to
# avoid races. Leave this commented if you are using the
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.

MySQLTransactions On

et mon dossier /etc/pure-ftpd/conf contient :
total 40
-rw-r--r-- 1 root root 36 2006-06-23 12:03 AltLog
-rw-r--r-- 1 root root  4 2007-01-08 20:45 ChrootEveryone <- Yes
-rw-r--r-- 1 root root  4 2007-01-08 20:44 CreateHomeDir  <- Yes
-rw-r--r-- 1 root root  5 2006-06-23 12:03 MinUID
-rw-r--r-- 1 root root 29 2006-06-23 12:03 MySQLConfigFile   <-/etc/pure-ftpd/db/mysql.conf
-rw-r--r-- 1 root root  4 2006-06-23 12:03 NoAnonymous  <-Yes
-rw-r--r-- 1 root root  4 2007-01-08 20:45 NoTruncate <- Yes
-rw-r--r-- 1 root root  3 2007-01-08 21:39 PAMAuthentication <- No
-rw-r--r-- 1 root root 28 2006-06-23 12:03 PureDB <-No
-rw-r--r-- 1 root root  3 2007-01-08 21:49 UnixAuthentication <-No

Dernière modification par titirock (Le 11/02/2007, à 17:35)


Alice est née au pays des cauchemars,
Je voudrais juste la rassurer...
--------------------------------------
http://www.tuxalafenetre.net

Hors ligne

#2 Le 09/01/2007, à 06:46

dexinou

Re : [Résolu] [Pure-FTPd]Erreur : /Cannot exec /usr/sbin/pure-ftp?????

Salut,
vous avez bien créer la bd pureftpd et la table users sur mysql avant de lancer le serveur ftp ?

Dernière modification par dexinou (Le 09/01/2007, à 06:49)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#3 Le 09/01/2007, à 08:33

titirock

Re : [Résolu] [Pure-FTPd]Erreur : /Cannot exec /usr/sbin/pure-ftp?????

Oui.


Alice est née au pays des cauchemars,
Je voudrais juste la rassurer...
--------------------------------------
http://www.tuxalafenetre.net

Hors ligne

#4 Le 11/02/2007, à 17:32

titirock

Re : [Résolu] [Pure-FTPd]Erreur : /Cannot exec /usr/sbin/pure-ftp?????

Ce problème a l'air d'être réservé à la Debian 4 Etch, car je n'ai pas rencontré cette erreur sous Ubuntu.
Le problème vient du fait que pure-ftpd-wrapper tient absolument à executer pure-ftpd, or il n'existe plus quand on veux installer pure-ftpd-mysql. La solution est donc :

ln -sf /usr/sbin/pure-ftpd-mysql /usr/sbin/pure-ftpd

Source

Dernière modification par titirock (Le 11/02/2007, à 17:33)


Alice est née au pays des cauchemars,
Je voudrais juste la rassurer...
--------------------------------------
http://www.tuxalafenetre.net

Hors ligne

#5 Le 11/02/2007, à 21:10

dexinou

Re : [Résolu] [Pure-FTPd]Erreur : /Cannot exec /usr/sbin/pure-ftp?????

Tout à fait,
j'avais rencontrer aussi cette erreur sous debian sarge et etch.

Dernière modification par dexinou (Le 24/06/2007, à 08:44)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne