www.ProFTPD.de
13. März 2007, 19:27:29 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: 1 ... 3 4 [5] 6   Nach unten
  Drucken  
Autor Thema: mod_sql compilieren klapt nicht!  (Gelesen 2666 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #60 am: 15. Oktober 2003, 13:40:08 »

Erstmal: root Login ist gaaanz böse - das soll sogar nicht so einfach gehen...

 :arrow: "No such file or directory" ist doof.
Wie ist der Eintrag für das Homedir (Verzeichnis) des Benutzers "test" in der Datenbank?
Hat FTP Rechte /root zu lesen?
Gibt es eine Direktive DefaultRoot  :arrow:  Wie sieht die aus?

Schreib mal in die proftpd.conf
Code:
ServerIdent On        "TeSt"
ServerName "TesT"

Dan sehe ich, ob die conf überhaupt geladen wird....

Bis gleich.
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #61 am: 15. Oktober 2003, 13:56:13 »

alles aus der conf:

SQLDefaultHomedir               /bordkommunikation

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


"test" homedir  /bordkommunikation

die zweite frage habe ich nicht verstanden.
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #62 am: 15. Oktober 2003, 14:00:52 »

Zitat von: "gast"
SQLDefaultHomedir               /bordkommunikation
#DefaultRoot ~
"test" homedir  /bordkommunikation

Okay. Setzen wir also hier an.

1. Das Verzeichnis /bordkommunikation existiert?
2. Gib dem Verzeichnis /bordkommunikation mal volle Rechte: chmod -R 777 /bordkommunikation
3. Mach mal die # vor DefaultRoot ~ raus und starte proftpd mit proftpd -nd9 neu.

Resultate wieder hier...
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #63 am: 15. Oktober 2003, 14:10:59 »

die ersten beiden fragen kann ich mit ja beantworten.
drittens habe ich auch gemacht selber fehler
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #64 am: 15. Oktober 2003, 14:13:18 »

Zitat von: "gast"
die ersten beiden fragen kann ich mit ja beantworten.

Fein.
Zitat von: "gast"
drittens habe ich auch gemacht selber fehler

Und? Was sagt proftpd -nd9 wenn du dich anmelden willst?
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #65 am: 15. Oktober 2003, 14:18:05 »

ich kann mich nicht mit diesem befehl anmelden.

kommt immer nur das und ich muss crtl+c machen oder nach einer weile automatisch

ein auszug:

bordkomm1 - ProFTPD 1.2.8 (stable) (built Mit Okt 15 08:12:54 CEST 2003) standalone mode STARTUP
bordkomm1 - ROOT PRIVS at main.c:2124
bordkomm1 - RELINQUISH PRIVS at main.c:2130
bordkomm1 - FS: using system lstat()
bordkomm1 - FS: using system lstat()
bordkomm1 - ProFTPD terminating (signal 2)
bordkomm1 - ROOT PRIVS at main.c:1786
bordkomm1 - RELINQUISH PRIVS at main.c:1807
bordkomm1 - ProFTPD 1.2.8 standalone mode SHUTDOWN
bordkomm1 - ROOT PRIVS at main.c:1814
bordkomm1 - RELINQUISH PRIVS at main.c:1816
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #66 am: 15. Oktober 2003, 14:23:56 »

Zitat
bordkomm1 - ProFTPD 1.2.8 (stable) (built Mit Okt 15 08:12:54 CEST 2003) standalone mode STARTUP
bordkomm1 - ROOT PRIVS at main.c:2124
bordkomm1 - RELINQUISH PRIVS at main.c:2130
bordkomm1 - FS: using system lstat()
bordkomm1 - FS: using system lstat()
bordkomm1 - ProFTPD terminating (signal 2)
bordkomm1 - ROOT PRIVS at main.c:1786
bordkomm1 - RELINQUISH PRIVS at main.c:1807
bordkomm1 - ProFTPD 1.2.8 standalone mode SHUTDOWN
bordkomm1 - ROOT PRIVS at main.c:1814
bordkomm1 - RELINQUISH PRIVS at main.c:1816

Das kommt wenn du dich anmeldest?
Glaub ich nicht!

Mach mal RootLogin on in die proftpd.conf und versuche dich als root anzumelden.

Und bitte nochmal proftpd -l
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #67 am: 15. Oktober 2003, 14:25:05 »

hab ich auch scon gemacht!
soll ich mal meine komplette conf schicken?
Gespeichert
gast
Gast
« Antwort #68 am: 15. Oktober 2003, 14:28:36 »

ich kann mich doch gar nicht anmelden.
in diese zeile hängt er immer und ich muss mit crtl+c abbrechen.


[root@bordkomm1 etc]# 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_sql.c
  mod_sql_mysql.c
  mod_cap.c
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #69 am: 15. Oktober 2003, 14:37:31 »

Zitat von: "gast"
hab ich auch scon gemacht!
soll ich mal meine komplette conf schicken?

Jau.
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #70 am: 15. Oktober 2003, 14:39:26 »

so sieht meine proftpd.conf aus:

# 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"
DefaultServer                   on
ServerIdent                     on "Test"
Servername                      "Test"

# Port 21 is the standard FTP port.
Port                            21

#-------mod_sql-modul---------------

SQLAuthenticate                 users
SQLConnectInfo                  ftpanmeldung@ip-adresseroot password percall
SQLAuthTypes                    plaintext
SQLUserInfo                     usertable username passwd uid gid homedir shell
SQLGroupInfo                    grouptable groupname gid members
SQLDefaultHomedir               /bordkommunikation

# 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 44

# Set the user and group under which the server will run.
#User                           ftpmaster
#Group                          bord

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

# Normally, we want files to be overwriteable.

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
 # User                         ftp
 # Group                                ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
 # UserAlias                    anonymous ftp

  # 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
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
<Global>
RootLogin on
RequireValidShell on
</Global>
RootLogin off
MaxLoginAttempts 3
RequireValidShell on
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #71 am: 15. Oktober 2003, 14:41:38 »

:idiot)
Als erstes änder mal alles was RequireValidShell on heißt auf RequireValidShell off
Und RootLogin off und RootLogin on gleichzeitig geht nicht - entweder - oder.
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
gast
Gast
« Antwort #72 am: 15. Oktober 2003, 15:17:01 »

hab ich alles gemacht bekomme immer noch fehlermeldung: :cry:

[root@bordkomm1 etc]# ftp localhost
Connected to localhost (127.0.0.1).
220 Test
Name (localhost:root): test
331 Password required for test.
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #73 am: 15. Oktober 2003, 16:45:07 »

Zitat von: "gast"
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory

Das macht mich stutzig.
Wo kommt das her?

Probier mal die config:

Code:
ServerName "ProFTPD"
DefaultServer on
ServerIdent on "Test"
Port 21
SQLAuthenticate users* groups*
SQLConnectInfo ftpanmeldung@ip-adresse root password percall
SQLAuthTypes Backend plaintext Empty
SQLUserInfo usertable username passwd uid gid homedir shell
SQLGroupInfo grouptable groupname gid members
SQLGroupInfo gruppen name ID mitglieder
SQLHomedirOnDemand On
Umask 0111 0000
MaxInstances 44
DefaultChdir ~
DefaultRoot ~
DefaultTransferMode binary
RootLogin on
RequireValidShell off

<Directory ~>
 <Limit WRITE SITE_CHMOD DELE>
   DenyAll
 </Limit>
 <Limit READ DIRS>
   IgnoreHidden On
   AllowAll
 </Limit>
 </Directory>

<Directory ~/uploads>
 <Limit SITE_CHMOD DELE>
   DenyAll
 </Limit>
 <Limit WRITE READ DIRS>
   AllowAll
   DenyAll
 </Limit>
</Directory>

<Anonymous ~ftp>
 MaxClients 10
 <Limit WRITE>
  DenyAll
 </Limit>
</Anonymous>
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #74 am: 15. Oktober 2003, 19:56:55 »

Zitat von: "gast"
hab ich alles gemacht bekomme immer noch fehlermeldung: :cry:

[root@bordkomm1 etc]# ftp localhost
Connected to localhost (127.0.0.1).
220 Test
Name (localhost:root): test
331 Password required for test.
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory


willst Du nicht einfach Christian (oder mir) kurz Root Login geben ? ist ja besser als IRC chat hier :)

cu
stonki
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Seiten: 1 ... 3 4 [5] 6   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.068 Sekunden mit 16 Zugriffen.