www.ProFTPD.de
13. März 2007, 21:53:51 *
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]   Nach unten
  Drucken  
Autor Thema: login probleme ins userverzeichnis  (Gelesen 284 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
jensman
ProFTPD
*
Offline Offline

Beiträge: 3


Profil anzeigen
« am: 18. September 2003, 22:24:16 »

ich komm nicht rein, ausser wenn ich den user die gruppe root verpasse.

hier der debug log:


linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - USER jenzo: Login successful.
linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - Preparing to chroot() the environment, path = '/opt/lampp/htdocs'
linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - Environment successfully chroot()ed.
linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - unable to chdir to /ftpuser/ (Permission denied), defaulting to chroot directory /opt/lampp/htdocs
linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - jenzo chdir("/"): Permission denied
linux.local (pD9E808DC.dip0.t-ipconnect.de[217.232.8.220]) - FTP session closed.


-----------
irgendwie will proftpd in das verzeichnis "/"
obwohl nichts dergleichen in der config steht.

nur : DefaultRoot /opt/lampp/htdocs/web/ftpuser jenzogroup


wer weiss Rat??
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 am: 19. September 2003, 08:15:53 »

poste mal Deine ganze config
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
jensman
ProFTPD
*
Offline Offline

Beiträge: 3


Profil anzeigen
« Antwort #2 am: 19. September 2003, 10:18:50 »

Danke für die schnelle Antwort: hier die gesamte Config:
Owner für das Verzeichnis ftpuser ist jenzo / jenzogroup

ServerName         "ProFTPD"
ServerType         standalone
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21
Umask            022
MaxInstances         30

# Set the user and group that the server normally runs at.

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
  AllowOverwrite      on
</Directory>

# only for the web servers content
DefaultRoot /opt/lampp/htdocs
DefaultRoot /opt/lampp/htdocs/web/ftpuser jenzogroup

UserPassword jenzo HLokNMXIf.....
UserPassword ftpjz RJfvxuxl.....

RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
<Global>
DefaultChdir /opt/lampp/htdocs/ftpuser
DefaultRoot /opt/lampp/htdocs/ftpuser jenzogroup
AccessDenyMsg "kein login eh"
SyslogLevel debug
</Global>
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #3 am: 19. September 2003, 11:14:37 »

Hallo,

also eine richtige Idee habe ich nicht, ich habe jedoch Deine Config eimal ein wenig bereinigt. teste mal und poste mir dann die Debug Ausgabe noch mal.

Code:

ServerName "ProFTPD"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
Umask 022
MaxInstances 30

# only for the web servers content
DefaultRoot /opt/lampp/htdocs/
DefaultRoot /opt/lampp/htdocs/web/ftpuser/ jenzogroup

UserPassword jenzo HLokNMXIf.....
UserPassword ftpjz RJfvxuxl.....

RequireValidShell off
UseFtpUsers off
AccessDenyMsg "kein login eh"
SyslogLevel debug

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
  AllowOverwrite on
</Directory>


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
jensman
ProFTPD
*
Offline Offline

Beiträge: 3


Profil anzeigen
« Antwort #4 am: 22. September 2003, 09:17:18 »

Also mit dieser Config startet proftpd gar nicht mehr.
Der Punkt ist glaub ich auch, warum proftpd nach erfolgreichen
Login nun auf "/" wechseln will. Wenn der User in der Gruppe Root ist
geht das Login ja, im FTP client wechselt er dann ins Verzeichnis htdocs.

Wenn der User keine Rootrechte hat, wird "/" offenbar verweigert. Aber warum führt das gleich zum "login failed" ??

Grüße von Jens
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #5 am: 22. September 2003, 09:44:31 »

Zitat von: "jensman"
Also mit dieser Config startet proftpd gar nicht mehr.


eben mal proftpd im debug modus starten.

Wenn ProFTPD das HomeDir nicht erreich kann, kann natuerlich ProFTPD nicht starten. Daher Login Denied.

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
Anonymous
Gast
« Antwort #6 am: 22. September 2003, 12:56:48 »

Hallo Stonki,

ich habe nun mal deine standard konfig genommen und bekomme dies:


linux.local - Config for SERVERNAME:
linux.local - /
linux.local -  AllowOverwrite
linux.local -  Umask
linux.local - DefaultServer
linux.local - Umask
linux.local - UserID
linux.local - UserName
linux.local - GroupID
linux.local - GroupName
linux.local - DefaultRoot
linux.local - Failed binding to 0.0.0.0, port 21: Address already in use
linux.local - Check the ServerType directive to ensure you are configured correctly.
linux:~ #

kann es sein, das noch ein ftp server läuft, der den port 21 blockiert?

Grüße von Jens
Gespeichert
Anonymous
Gast
« Antwort #7 am: 22. September 2003, 13:41:03 »

wenn ich das homeverzeichnis bei dem user jenzo auf
/home/jenzo (standard bei webmin)
einstelle, klappt der Login. Stelle ich das Homeverzeichnis wieder
auf /opt/lampp/htdocs/ , ohne die proftpconf zu ändern kommt "Permission denied".
Es liegt also an den Rechten. Das verzeichnis home/jenzo hat aber die gleichen Owner wie /opt/lampp/htdocs/web/jenzo

ja wieso ?
Gespeichert
Seiten: [1]   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.091 Sekunden mit 17 Zugriffen.