also ich habe jezt ne datenbunk mit dem dump erstellt :
### Create database
DROP DATABASE IF EXISTS ftp;
CREATE DATABASE ftp;
### Create a ftp user
# ftpuser = your ftp mysql user
# ftppassword = password for your ftp mysql user
GRANT ALL PRIVILEGES ON ftp.* TO ftp@localhost IDENTIFIED BY 'password';
SET PASSWORD FOR ftp@localhost = PASSWORD('ftp');
use ftp;
### Table for all users
CREATE TABLE users (
username VARCHAR(15) NOT NULL,
passwd VARCHAR(15) NOT NULL,
fullname VARCHAR(60) NULL,
valid SMALLINT DEFAULT 0,
count INT DEFAULT 0,
lastlogin DATETIME,
homedir VARCHAR(100) NULL,
PRIMARY KEY(username)
);
## Table for all groups
CREATE TABLE groups (
id INT PRIMARY KEY auto_increment,
groupname VARCHAR(15) NOT NULL,
username VARCHAR(15) NOT NULL
);
## Table for list of available groups
CREATE TABLE listgroups (
id INT PRIMARY KEY auto_increment,
groupname VARCHAR(15) NOT NULL,
description VARCHAR(255) NULL
);
### Table for transferhistory
CREATE TABLE history (
id INT PRIMARY KEY auto_increment,
username VARCHAR(15),
filename VARCHAR(100),
transfertype VARCHAR(10),
transfersize INT,
transferhost VARCHAR(30),
transfertime VARCHAR(20),
transferdate DATETIME
);
### Table for user events
CREATE TABLE userevents (
id INT PRIMARY KEY auto_increment,
username VARCHAR(15),
eventtype VARCHAR(10),
description VARCHAR(255),
eventdate DATETIME
);
aber in der proftpd_sql log steht immer noch :
Jun 23 11:55:59 mod_sql/4.10[1054]: backend module 'mod_sql_mysql/4.04'
Jun 23 11:55:59 mod_sql/4.10[1054]: backend api 'mod_sql_api_v1'
Jun 23 11:55:59 mod_sql/4.10[1054]: >>> sql_getconf
Jun 23 11:55:59 mod_sql/4.10[1054]: entering mysql cmd_defineconnection
Jun 23 11:55:59 mod_sql/4.10[1054]: name: 'default'
Jun 23 11:55:59 mod_sql/4.10[1054]: user: 'ftp'
Jun 23 11:55:59 mod_sql/4.10[1054]: host: 'localhost'
Jun 23 11:55:59 mod_sql/4.10[1054]: db: 'user'
Jun 23 11:55:59 mod_sql/4.10[1054]: port: '3306'
Jun 23 11:55:59 mod_sql/4.10[1054]: ttl: '0'
Jun 23 11:55:59 mod_sql/4.10[1054]: exiting mysql cmd_defineconnection
Jun 23 11:55:59 mod_sql/4.10[1054]: entering mysql cmd_open
Jun 23 11:55:59 mod_sql/4.10[1054]: exiting mysql cmd_open
Jun 23 11:55:59 mod_sql/4.10[1054]: unrecoverable backend error
Jun 23 11:55:59 mod_sql/4.10[1054]: error: '1044'
Jun 23 11:55:59 mod_sql/4.10[1054]: message: 'Access denied for user: 'ftp@localhost' to databas
meine proftpd.conf sieht sop aus :
SQLAuthenticate users* groups*
SQLAuthTypes Backend Empty
SQLConnectInfo user@localhost:3306 ftp ftp PERSESSION
SQLHomedirOnDemand On
SQLUserInfo users username passwd NULL NULL homedir NULL
SQLGroupInfo gruppen name ID mitglieder
SQLLogfile /var/log/proftpd_sql.log