Jump to content
Froxlor Forum
  • 0

MysqlAuth fehlt bei Proftpd


mrc_

Question

Hallo,

 

zu meiner Situation:

Habe einen Rootserver soweit neu aufgestzt, eingerichtet und Froxlor installiert, bis auf Proftpd l?uft nun auch alles.

Habe Proftpd mithilfe eines zus?tzlichen Repositories ?ber yast2 installiert das l?uft soweit. Das Problem ist, das ich f?r die Accounts von Froxlor das Mysql Modul brauche, was ?ber yast2 zwar mit installiert ist, anscheinend aber nicht mitgeladen wird.

 

Ich habe auf proftpd.de ein Howto gefunden wie man das ganze nachkompiliert, jedoch finde ich die ./configure nicht.

 

 

Mein System:

(Intel Large @ ngz-server.de)

Intel Core i7-920

6 GB DDR3 RAM

2 x 500 GB SATA II HDD

OS: Suse 11.2 @ 64bit

WI: Froxlor V. 0.9.7.

 

 

Folgende Configs von Proftpd habe ich:

[b]# whereis proftpd[/b]
proftpd: /usr/sbin/proftpd /etc/proftpd /usr/lib64/proftpd /usr/include/proftpd /usr/share/man/man8/proftpd.8.gz

 

# proftpd --version
- ProFTPD Version 1.3.3

 

# /usr/local/sbin/proftpd -l
Compiled-in modules:
 mod_core.c
 mod_xfer.c
 mod_auth_unix.c
 mod_auth_file.c
 mod_auth.c
 mod_ls.c
 mod_log.c
 mod_site.c
 mod_delay.c
 mod_facts.c
 mod_dso.c
 mod_ident.c
 mod_auth_pam.c
 mod_cap.c
 mod_ctrls.c

 

# /etc/init.d/proftpd restart
Shutting down proftpd
 done
Starting proftpd  - processing configuration directory '/etc/proftpd/conf.d'
- warning: handling possibly truncated configuration data at line 29 of '/etc/proftpd/conf.d/modules.conf'
- warning: handling possibly truncated configuration data at line 250 of '/etc/proftpd/proftpd.conf'   
 done

Start mit angepasster standart cfg von proftpd

 

# /etc/init.d/proftpd restart
Shutting down proftpd
 done
Starting proftpd  - warning: unable to include '/etc/proftpd/modules.conf': No such file or directory
- Fatal: unknown configuration directive 'SQLAuthTypes' on line 55 of '/etc/proftpd/proftpd.conf'
startproc:  exit status of parent of /usr/sbin/proftpd: 1
 failed

Start mit Froxlor cfg

 

Die modules.conf ist bis auf den Lib-Pfad unver?ndert.

 

# Zeile 29 /etc/proftpd/conf.d/modules.conf
# keep this module the last one

 

# Zeile 250 /etc/proftpd/proftpd.conf
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used= files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name= '%{6}' AND quota_type = '%{7}'" ftp_quotatallies

(mit froxlor proftpd.conf file)

 

 

Jetz kommen wir zum spannenden Teil ;) :

------------------------------------------

  • Wo muss ich ansetzen?
  • Liegt es an den fehlenden Mysql Modulen?
  • Wenn ja, Wo bekomme ich ggf. die ./configure her?
  • Soll ich die proftpd.conf von froxlor sowie von proftpd nochmal mit posten? Ebenso modules.conf?
  • Liege ich komplett falsch und brauche einen neuen Ansatz?
  • Fehlt in diesem Post irgendetwas?

 

Liebe und vor Allem hoffende Gr??e,

Danke nochmals im Voraus!

 

mrc^

 

edit:

Da ich davon ausgehedas ihr alle mit Google etc umgehen k?nnt, hier mein alter Thread - der mir allerdings wenig gebracht hat:

- http://www.syscp-forum.org/index.php?topic=4986

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

Hi,

 

alles klar..wiegesagt die Install lief bis jetzt komplett ?ber yast2 & sieht mir immer noch nach nicht geladenem Mysql Modul aus :/

 

# proftpd -V
Compile-time Settings:
 Version: 1.3.3 (stable)
 Platform: LINUX [Linux 2.6.31.5-0.1-desktop x86_64]
 Built: Tue May 18 2010 09:04:43 UTC
 Built With:
   configure  '--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' '--target=x86_64-suse-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/lib' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--bindir=/usr/sbin' '--libexecdir=/usr/lib64/proftpd' '--sysconfdir=/etc/proftpd' '--localstatedir=/var/run/proftpd' '--enable-sendfile' '--enable-ipv6' '--enable-ctrls' '--enable-facl' '--enable-dso' '--with-includes=/usr/include/mysql:/usr/include/pgsql' '--with-shared=mod_load:mod_sftp_pam:mod_exec:mod_quotatab_file:mod_sql_mysql:mod_ctrls_admin:mod_sftp:mod_sql_sqlite:mod_quotatab_radius:mod_rewrite:mod_sql:mod_sftp_sql:mod_sql_odbc:mod_tls:mod_ban:mod_ldap:mod_wrap2:mod_wrap2_file:mod_shaper:mod_dynmasq:mod_quotatab:mod_radius:mod_readme:mod_tls_shmcache:mod_ifsession:mod_wrap:mod_quotatab_ldap:mod_ratio:mod_unique_id:mod_sql_postgres:mod_site_misc:mod_wrap2_sql:mod_sql_passwd:mod_quotatab_sql' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-suse-linux' 'CFLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DLDAP_DEPRECATED'

 CFLAGS: -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DLDAP_DEPRECATED -Wall
 LDFLAGS: -L$(top_srcdir)/lib
 LIBS:  -lssl -lcrypto -L$(top_srcdir)/lib/libcap -lcap  -lpam -lsupp -lcrypt -ldl  -ldl -lz

 Files:
   Configuration File:
     /etc/proftpd/proftpd.conf
   Pid File:
     /var/run/proftpd/proftpd.pid
   Scoreboard File:
     /var/run/proftpd/proftpd.scoreboard
   Header Directory:
     /usr/include/proftpd
   Shared Module Directory:
     /usr/lib64/proftpd

 Features:
   - Autoshadow support
   + Controls support
   - curses support
   - Developer support
   + DSO support
   + IPv6 support
   + Largefile support
   - Lastlog support
   + ncurses support
   - NLS support
   + OpenSSL support
   + POSIX ACL support
   + Shadow file support
   + Sendfile support
   + Trace support

 Tunable Options:
   PR_TUNABLE_BUFFER_SIZE = 1024
   PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
   PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
   PR_TUNABLE_HASH_TABLE_SIZE = 40
   PR_TUNABLE_NEW_POOL_SIZE = 512
   PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
   PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
   PR_TUNABLE_SELECT_TIMEOUT = 30
   PR_TUNABLE_TIMEOUTIDENT = 10
   PR_TUNABLE_TIMEOUTIDLE = 600
   PR_TUNABLE_TIMEOUTLINGER = 30
   PR_TUNABLE_TIMEOUTLOGIN = 300
   PR_TUNABLE_TIMEOUTNOXFER = 300
   PR_TUNABLE_TIMEOUTSTALLED = 3600
   PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10

Link to comment
Share on other sites

Ah, jop, das Problem liegt am ./configure, die vorletzte Zeile sagt:

 

'--with-includes=/usr/include/mysql:/usr/include/pgsql' 

 

sollte aber hei?en:

 

'--with-modules=/usr/include/mysql:/usr/include/pgsql' 

 

Am besten Sourcecode laden, kompletten ./configure -string ?bernehmen und nur diese Stelle ?ndern, danach noch ein

 

make && sudo make install

 

und schon kanns losgehen

Link to comment
Share on other sites

Die modules.conf ist bis auf den Lib-Pfad unver?ndert.

 

Jab, hier die modules.conf:

#
# This file is used to manage DSO modules and features.
#

# This is the directory where DSO modules resides

ModulePath /usr/lib64/proftpd

# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded

ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *

#LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
#LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
#LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
#LoadModule mod_quotatab_file.c
#LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
#LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c

 

edit:

 

Habe mir die source von v-1.3.3 (ftp://ftp1.at.proftpd.org/ProFTPD/distrib/source/) geladen und ./configure mit dem ge?nderten string ausgef?hrt. Ich bekomme folgende Fehlermeldung:

configure: error: source file './modules//usr/include/mysql.c' cannot be found -- aborting

Files gecheckt, alles da. Habe eine mysql.c unter '/usr/include/mysql' liegen,..

 

# md5sum -c proftpd-1.3.3.tar.gz.md5
proftpd-1.3.3.tar.gz: OK

andere source evtl?

Link to comment
Share on other sites

mal ganz banal: proftpd-mysql installiert?

 

in den packet ist das mysql modul drin (sagt zumindest das rpm, hab kein suse hier zum testen)

also brauchst du rein therothisch nicht neu kompilieren dafuer ;)

Link to comment
Share on other sites

ich glaub dein db passwort o.?. ist falsch angegeben. Erg?nze

 

SQLLOGFILE /var/log/proftpd/sql.log

 

zu Deiner /etc/proftpd/sql.conf, dann restart proftpd und Verbindungsversuch.

Danach schau in das neue Logfile.

 

Gr??e

Link to comment
Share on other sites

Hab nun ein SQL Logfile,

 

dazu direkt der Eintraf von froxlor aus der mysqldb:

INSERT INTO `ftp_users` (`id`, `username`, `uid`, `gid`, `password`, `homedir`, `shell`, `login_enabled`, `login_count`, `last_login`, `up_count`, `up_bytes`, `down_count`, `down_bytes`, `customerid`) VALUES
(1, 'mkusche', 10000, 10000, '[MYPASS]', '/var/customers/webs/mkusche/', '/bin/false', 'Y', 0, '0000-00-00 00:00:00', 0, 0, 0, 0, 1);

 

und das sql.log file:

Jun 03 12:00:46 mod_sql/4.2.4[19777]: defaulting to 'mysql' backend
Jun 03 12:00:46 mod_sql/4.2.4[19777]: backend module 'mod_sql_mysql/4.0.8'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: backend api    'mod_sql_api_v1'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> sql_sess_init
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_defineconnection
Jun 03 12:00:46 mod_sql/4.2.4[19777]:   name: 'default'
Jun 03 12:00:46 mod_sql/4.2.4[19777]:   user: 'froxlor'
Jun 03 12:00:46 mod_sql/4.2.4[19777]:   host: '127.0.0.1'
Jun 03 12:00:46 mod_sql/4.2.4[19777]:     db: 'froxlor'
Jun 03 12:00:46 mod_sql/4.2.4[19777]:   port: '3306'
Jun 03 12:00:46 mod_sql/4.2.4[19777]:    ttl: '0'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_defineconnection
Jun 03 12:00:46 mod_sql/4.2.4[19777]: mod_sql engine     : on
Jun 03 12:00:46 mod_sql/4.2.4[19777]: negative_cache     : off
Jun 03 12:00:46 mod_sql/4.2.4[19777]: authenticate       : users groups 
Jun 03 12:00:46 mod_sql/4.2.4[19777]: usertable          : ftp_users
Jun 03 12:00:46 mod_sql/4.2.4[19777]: userid field       : username
Jun 03 12:00:46 mod_sql/4.2.4[19777]: password field     : password
Jun 03 12:00:46 mod_sql/4.2.4[19777]: UID field          : uid
Jun 03 12:00:46 mod_sql/4.2.4[19777]: GID field          : gid
Jun 03 12:00:46 mod_sql/4.2.4[19777]: homedir field      : homedir
Jun 03 12:00:46 mod_sql/4.2.4[19777]: shell field        : shell
Jun 03 12:00:46 mod_sql/4.2.4[19777]: group table        : ftp_groups
Jun 03 12:00:46 mod_sql/4.2.4[19777]: groupname field    : groupname
Jun 03 12:00:46 mod_sql/4.2.4[19777]: grp GID field      : gid
Jun 03 12:00:46 mod_sql/4.2.4[19777]: grp members field  : members
Jun 03 12:00:46 mod_sql/4.2.4[19777]: SQLMinUserUID      : 999
Jun 03 12:00:46 mod_sql/4.2.4[19777]: SQLMinUserGID      : 999
Jun 03 12:00:46 mod_sql/4.2.4[19777]: SQLDefaultUID      : 65533
Jun 03 12:00:46 mod_sql/4.2.4[19777]: SQLDefaultGID      : 65533
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< sql_sess_init
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> sql_pre_pass
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< sql_pre_pass
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> cmd_getpwnam
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: MySQL client version: 5.1.36
Jun 03 12:00:46 mod_sql/4.2.4[19777]: MySQL server version: 5.1.36-log
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' opened
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache miss for user 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: : entering 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: query "SELECT username, password, uid, gid, homedir, shell FROM ftp_users WHERE (username='mkusche') AND (((login_enabled = 'y'))) LIMIT 1"
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache miss for user 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: user 'mkusche' cached
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + pwd.pw_name  : mkusche
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + pwd.pw_uid   : 10000
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + pwd.pw_gid   : 10000
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + pwd.pw_dir   : /var/customers/webs/mkusche/
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + pwd.pw_shell : /bin/false
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< cmd_getpwnam
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> cmd_gid2name
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache miss for GID '10000'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: : entering 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: query "SELECT groupname FROM ftp_groups WHERE (gid = 10000) LIMIT 1"
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: : entering 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: query "SELECT groupname, gid, members FROM ftp_groups WHERE (groupname = 'mkusche')"
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache miss for group 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: group 'mkusche' cached
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + grp.gr_name : mkusche
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + grp.gr_gid  : 10000
Jun 03 12:00:46 mod_sql/4.2.4[19777]: + grp.gr_mem  : mkuschemkuscheftp1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< cmd_gid2name
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> cmd_getgroups
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache hit for user 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache hit for group 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: : entering 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: query "SELECT groupname, gid, members FROM ftp_groups WHERE (members = 'mkusche' OR members LIKE 'mkusche,%' OR members LIKE '%,mkusche' OR members LIKE '%,mkusche,%')"
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_select
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< cmd_getgroups
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> cmd_auth
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 2
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_open
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 1
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_escapestring
Jun 03 12:00:46 mod_sql/4.2.4[19777]: cache hit for user 'mkusche'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: >>> cmd_check
Jun 03 12:00:46 mod_sql/4.2.4[19777]: checking password using SQLAuthType 'Plaintext'
Jun 03 12:00:46 mod_sql/4.2.4[19777]: 'Plaintext' SQLAuthType handler reports failure
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< cmd_check
Jun 03 12:00:46 mod_sql/4.2.4[19777]: <<< cmd_auth
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_exit
Jun 03 12:00:46 mod_sql/4.2.4[19777]: entering 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' closed
Jun 03 12:00:46 mod_sql/4.2.4[19777]: connection 'default' count is now 0
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_close
Jun 03 12:00:46 mod_sql/4.2.4[19777]: exiting 	mysql cmd_exit
Jun 03 12:00:51 mod_sql/4.2.4[19779]: defaulting to 'mysql' backend
Jun 03 12:00:51 mod_sql/4.2.4[19779]: backend module 'mod_sql_mysql/4.0.8'
Jun 03 12:00:51 mod_sql/4.2.4[19779]: backend api    'mod_sql_api_v1'
Jun 03 12:00:51 mod_sql/4.2.4[19779]: >>> sql_sess_init
Jun 03 12:00:51 mod_sql/4.2.4[19779]: entering 	mysql cmd_defineconnection
Jun 03 12:00:51 mod_sql/4.2.4[19779]:   name: 'default'
Jun 03 12:00:51 mod_sql/4.2.4[19779]:   user: 'froxlor'
Jun 03 12:00:51 mod_sql/4.2.4[19779]:   host: '127.0.0.1'
Jun 03 12:00:51 mod_sql/4.2.4[19779]:     db: 'froxlor'
Jun 03 12:00:51 mod_sql/4.2.4[19779]:   port: '3306'
Jun 03 12:00:51 mod_sql/4.2.4[19779]:    ttl: '0'
Jun 03 12:00:51 mod_sql/4.2.4[19779]: exiting 	mysql cmd_defineconnection
Jun 03 12:00:51 mod_sql/4.2.4[19779]: mod_sql engine     : on
Jun 03 12:00:51 mod_sql/4.2.4[19779]: negative_cache     : off
Jun 03 12:00:51 mod_sql/4.2.4[19779]: authenticate       : users groups 
Jun 03 12:00:51 mod_sql/4.2.4[19779]: usertable          : ftp_users
Jun 03 12:00:51 mod_sql/4.2.4[19779]: userid field       : username
Jun 03 12:00:51 mod_sql/4.2.4[19779]: password field     : password
Jun 03 12:00:51 mod_sql/4.2.4[19779]: UID field          : uid
Jun 03 12:00:51 mod_sql/4.2.4[19779]: GID field          : gid
Jun 03 12:00:51 mod_sql/4.2.4[19779]: homedir field      : homedir
Jun 03 12:00:51 mod_sql/4.2.4[19779]: shell field        : shell
Jun 03 12:00:51 mod_sql/4.2.4[19779]: group table        : ftp_groups
Jun 03 12:00:51 mod_sql/4.2.4[19779]: groupname field    : groupname
Jun 03 12:00:51 mod_sql/4.2.4[19779]: grp GID field      : gid
Jun 03 12:00:51 mod_sql/4.2.4[19779]: grp members field  : members
Jun 03 12:00:51 mod_sql/4.2.4[19779]: SQLMinUserUID      : 999
Jun 03 12:00:51 mod_sql/4.2.4[19779]: SQLMinUserGID      : 999
Jun 03 12:00:51 mod_sql/4.2.4[19779]: SQLDefaultUID      : 65533
Jun 03 12:00:51 mod_sql/4.2.4[19779]: SQLDefaultGID      : 65533
Jun 03 12:00:51 mod_sql/4.2.4[19779]: <<< sql_sess_init
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> sql_pre_pass
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< sql_pre_pass
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> cmd_getpwnam
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: MySQL client version: 5.1.36
Jun 03 12:00:52 mod_sql/4.2.4[19779]: MySQL server version: 5.1.36-log
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' opened
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache miss for user 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: : entering 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: query "SELECT username, password, uid, gid, homedir, shell FROM ftp_users WHERE (username='mkusche') AND (((login_enabled = 'y'))) LIMIT 1"
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache miss for user 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: user 'mkusche' cached
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + pwd.pw_name  : mkusche
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + pwd.pw_uid   : 10000
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + pwd.pw_gid   : 10000
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + pwd.pw_dir   : /var/customers/webs/mkusche/
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + pwd.pw_shell : /bin/false
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< cmd_getpwnam
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> cmd_gid2name
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache miss for GID '10000'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: : entering 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: query "SELECT groupname FROM ftp_groups WHERE (gid = 10000) LIMIT 1"
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: : entering 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: query "SELECT groupname, gid, members FROM ftp_groups WHERE (groupname = 'mkusche')"
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache miss for group 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: group 'mkusche' cached
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + grp.gr_name : mkusche
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + grp.gr_gid  : 10000
Jun 03 12:00:52 mod_sql/4.2.4[19779]: + grp.gr_mem  : mkuschemkuscheftp1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< cmd_gid2name
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> cmd_getgroups
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache hit for user 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache hit for group 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: : entering 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: query "SELECT groupname, gid, members FROM ftp_groups WHERE (members = 'mkusche' OR members LIKE 'mkusche,%' OR members LIKE '%,mkusche' OR members LIKE '%,mkusche,%')"
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_select
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< cmd_getgroups
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> cmd_auth
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 2
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_open
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 1
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_escapestring
Jun 03 12:00:52 mod_sql/4.2.4[19779]: cache hit for user 'mkusche'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: >>> cmd_check
Jun 03 12:00:52 mod_sql/4.2.4[19779]: checking password using SQLAuthType 'Plaintext'
Jun 03 12:00:52 mod_sql/4.2.4[19779]: 'Plaintext' SQLAuthType handler reports failure
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< cmd_check
Jun 03 12:00:52 mod_sql/4.2.4[19779]: <<< cmd_auth
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_exit
Jun 03 12:00:52 mod_sql/4.2.4[19779]: entering 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' closed
Jun 03 12:00:52 mod_sql/4.2.4[19779]: connection 'default' count is now 0
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_close
Jun 03 12:00:52 mod_sql/4.2.4[19779]: exiting 	mysql cmd_exit

 

wenn ich richtig lese, m?sste das die Zeile sein, oder?

Jun 03 12:00:52 mod_sql/4.2.4[19779]: 'Plaintext' SQLAuthType handler reports failure

 

 

edit:

Habe grade nach dem Logs ausgelesen nochmal in die proftpd.conf geschaut, und bei SQLAuthType 'Crypt' hinzugef?gt. Bis jetzt stand da bei mir nur Plaintext... Proftpd Restart und siehe da es l?uft :) Hab grad einen neuen User angelegt und diesen ebenfalls getestet.

 

Das letzte Problem auf das ich im Zusammenhang mit proftpd gesto?en bin ist, das ich bei einer SFTP Verbindung zwar den SSL key annehmen kann, die Authentication aber dennoch faild. Ideen? (:

Link to comment
Share on other sites

Jun 03 12:00:52 mod_sql/4.2.4[19779]: 'Plaintext' SQLAuthType handler reports failure

 

hm, wenn du die Konfiguration von Froxlor ?bernimmst, sollte das eigentlich ohnehin auf Crypt stehen. Check lieber nochmal unter Froxlor->Konfiguration->FTP, ob Du auch wirklich alle Einstellungen ?bernommen hast, so dass Froxlor reibungslos funktioniert. Ansonsten sch?n dass die SQL-Log geholfen hat ;)

 

Gr??e

Link to comment
Share on other sites

SFTP ist nicht das gleiche wie "FTP ?ber TLS / SSL", du solltest letzteres nutzen f?r Froxlor.

Danke f?r die Info. Wenn ich versuche mit Filezilla per FTP ?ber implizites & explizites TLS/SSL bekomme ich folgende Fehlermeldung:

Status:	Verbindung hergestellt, warte auf Willkommensnachricht...
Antwort:	220 FTP server ready
Befehl:	AUTH TLS
Antwort:	500 AUTH not understood
Befehl:	AUTH SSL
Antwort:	500 AUTH not understood
Fehler:	Kritischer Fehler
Fehler:	Herstellen der Verbindung zum Server fehlgeschlagen

Hab mit '/usr/sbin/proftpd -l' nachgeschaut, weder mod_tls noch mod_ssl ist geladen. Gibts ne M?glichkeit das ebenfalls nachzukompilieren bzw wo soll ich :mod_tls,.. in den ./configure string einf?gen?

 

hm, wenn du die Konfiguration von Froxlor ?bernimmst, sollte das eigentlich ohnehin auf Crypt stehen. Check lieber nochmal unter Froxlor->Konfiguration->FTP, ob Du auch wirklich alle Einstellungen ?bernommen hast, so dass Froxlor reibungslos funktioniert. Ansonsten sch?n dass die SQL-Log geholfen hat ;)

 

Das lag an mir,.. >.< hab in nem Forum eine L?sung gelesen, dort wurde das Passwort nur in Plain - aber nicht in Crypt gelesen. Hab das ausprobiert und wohl vergessen wieder zur?ck zu setzen. Ist allerdings komisch, da ich andere config files verwende,.. Nundenn however - es l?uft nun.

W?rde gern noch TLS/SSL dabei haben, dann bin ich zufrieden :)

 

 

Danke euch nochmals f?r eure Hilfe!! :):DB)

lg

 

edit:

mir ist grad aufgefallen das das 'jail' nicht so funktioniert wies soll,.. ich komme als webuser in jedes Verzeichnis vom root, und kann teilweise die files sogar downloaden. Habe im Netz nachgeschaut und folgendes gefunden:

link: - http://www.proftpd.org/docs/directives/linked/config_ref_DefaultRoot.html & http://www.proftpd.de/FAQ.15.0.html

 

 

Wenn ich ' DefaultRoot auf ~ ' setze, wird jeder Account ins / geleitet, und kommt da auch nicht mehr raus.

Mit dem default von Froxlor ' DefaultRoot ~ web,!users ' werde ich zwar ins jeweilige Verzeichnis geleitet, kann daraus jedoch hoch navigieren und ebenfalls diverse Files downloaden.

Dabei steht in den FAQ's das die $var ~ dazu da ist, den user in seinem Verzeichnis zu behalten, wo hab ich den Bug?

Als Test habe ich zB. /etc/apache2/httpd.conf als Froxlor customer heruntergeladen.., bei der proftpd.conf bekomme ich allerdings ne Fehlermeldung :/ ...Wenn ich DefaultRoot auf ~ setze, komme ich nurnoch ins /etc/ Verzeichnis, und kann mich da blind bedienen... W?rde spontan sagen das es was mit den Rechten zutun hat, anbei mal ne Frage: Soll ich den Prozess von proftpd als user/group ftp/ftp oder root/root starten?

 

In meiner proftpd.conf steht folgendes:

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot		~ web,!users

Link to comment
Share on other sites

Danke f?r die Info. Wenn ich versuche mit Filezilla per FTP ?ber implizites & explizites TLS/SSL bekomme ich folgende Fehlermeldung:

Status:	Verbindung hergestellt, warte auf Willkommensnachricht...
Antwort:	220 FTP server ready
Befehl:	AUTH TLS
Antwort:	500 AUTH not understood
Befehl:	AUTH SSL
Antwort:	500 AUTH not understood
Fehler:	Kritischer Fehler
Fehler:	Herstellen der Verbindung zum Server fehlgeschlagen

Hab mit '/usr/sbin/proftpd -l' nachgeschaut, weder mod_tls noch mod_ssl ist geladen. Gibts ne M?glichkeit das ebenfalls nachzukompilieren bzw wo soll ich :mod_tls,.. in den ./configure string einf?gen?

 

Das lag an mir,.. >.< hab in nem Forum eine L?sung gelesen, dort wurde das Passwort nur in Plain - aber nicht in Crypt gelesen. Hab das ausprobiert und wohl vergessen wieder zur?ck zu setzen. Ist allerdings komisch, da ich andere config files verwende,.. Nundenn however - es l?uft nun.

W?rde gern noch TLS/SSL dabei haben, dann bin ich zufrieden :)

 

Hallo soweit ich wei? unterst?tzt Filezilla nicht SFTP. Nochmal: SFTP ist nicht gleich FTPS :P.

 

Probiere doch einmal das Problemm WinSCP mit dem du dich ?ber SFTP mit Unix Usern am System sicher anmelden kannst.

 

Gr??e,

 

arnoldB

Link to comment
Share on other sites

Hallo soweit ich wei? unterst?tzt Filezilla nicht SFTP. Nochmal: SFTP ist nicht gleich FTPS :P.

Probiere doch einmal das Problemm WinFCP mit dem du dich ?ber SFTP mit Unix Usern am System sicher anmelden kannst.

 

Das wei? ich ja nu auch ;) Geht mir an sich auch nicht um SFTP >.< per Winscp komme ich ohne Probleme auf den Server,..

Mir gings grade um FTPS bzw FTPES ;)

 

lg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...