und zwar:
OS: Suse10
Bisher:
--> mysql installiert
--> User in mysql angelgt: root
-->Tabellenbeschreibung downgeloadet und übernommen
--> Tabellen users und groups editiert
--> configure, make , make install erfolgreich ausgeführt
--> proftpd gestartet (funktioniert)
Mein erster Test war als Anonymous zu connecten, was auch funktionierte.
Danach wollte ich mich der MYSQL anbindung widmen:
Ich habe die config-File wie im Tutorial beschrieben editiert:
SQLAuthTypes Plaintext
SQLAuthenticate users*
SQLConnectInfo db@localhost username password
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID 100
SQLMinUserUID 500
SQLUserInfo ftp username password uid gid homedir shell
bei dem Eintrag SQLConnectInfo db@localhost username password habe ich natürlich meine Zugangsdaten für die MYSQL Datenbank verwendet:
SQLConnectInfo proftpd@localhost root - (da kein passwort festgesetzt)
Meine Datenbank schaut folgendermaßen aus:
[DBName] [Tabellenname]
proftpd --> ftp
groups
users
xfer_stat
Jetzt war meine Überlegung, in der Tabelle "users" einen neuen Username anzulegen:
users:
userid | passwd | uid | gid | homedir | shell
ftptest | ftptest | 5000 | 5000 | /home/ftp | /bin/sh
Beim Versuch mit user="ftptest" und passwort "ftptest" zu connecten, konnte die Verbindung nicht hergestellt werden.
Ich bitte um einige Denkanstöße für Folgende Fragen:
1. Welche Werte muss man für UID und GID eintragen bzw. müssen diese IDs auch auf dem Linux-System bekannt sein?
2. Wieso wird keine Verbindung hergestellt, obwohl es den User (in der Tabelle Users) gibt?
Ich hoffe die Beschreibung meines Problems ist gut gelungen... danke schon im voraus
grüße
fish
hiere meine proftpd config file:
- Code: Select all
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# 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 under which the server will run.
User root
Group root
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
AuthOrder mod_sql.c mod_ldap.c
RequireValidShell off
SQLAuthTypes Plaintext
SQLAuthenticate users*
SQLConnectInfo proftpd@localhost root
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID 100
SQLMinUserUID 500
SQLUserInfo ftp username password uid gid homedir shell
SQLBackend mysql