www.ProFTPD.de

ProFTPD => ProFTPD - Deutsch => Thema gestartet von: numx am 20. Juni 2005, 11:16:49



Titel: DefaultRoot funzt nicht
Beitrag von: numx am 20. Juni 2005, 11:16:49
Hallo Leute,

ich habe DefaultRoot ~ in meine proftpd.conf eingetragen aber nichts will so richtig funktionieren. Will sagen die User landen nicht in ihrem Verzeichnis was beim anlgegen der User mitgegeben wurde. In meinem Falll ist es /ftp/"username". Statt dessen landen sie immer auf oberster Ebene in /. Sie kommen dann auch in kein Verzeichnis rein nicht mal in das Verzeichnis /ftp/"username". Für dieses Verzeichnis haben sie aber 777 Zugriff also Vollzugriff. Stattdessen steht bei Clientprogramm "/ftp No such File or directory". Nehme ich dann DefaultRoot ~ wieder raus landen sie im /ftp/"username" aber sie können sich daann nach oben hangeln. Ich habe schon folgende Sachen ausprobiert.


DefaultRoot ~

DefaultRoot ~ ftpuser (das ist die Gruppe in der alle FTP User         drin sind)

<Global>
DefaultRoot ~
</Global>

<Global>
DefaultRoot ~ ftpuser
</Global>


ich benutzer Debian 3.1 und Proftpd 1.2.10 mod_auth ist auch vorhanden. Im Debug modus 9 steht

- dispatching directive 'DefaultRoot' to module mod_auth


Titel: Re: DefaultRoot funzt nicht
Beitrag von: stonki am 20. Juni 2005, 11:30:15
poste mal die gesamte config und stelle SICHER, das auch auch die RICHTIGE Config beim start von proftpd genommen wird. Ggf. die config beim start von proFTPD mit übergeben


Titel: DefaultRoot funzt nicht
Beitrag von: numx am 20. Juni 2005, 13:04:58
bitte sehr


#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName         "Debian"
ServerType         standalone
DeferWelcome         off

#MultilineRFC2228      on
#DefaultServer         on
ShowSymlinks         on

TimeoutNoTransfer           300   
TimeoutStalled              300    
TimeoutIdle              300   

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
#ListOptions "-a" zeigt alle Files im Verzeichnis
ListOptions                   "-l"
DenyFilter         \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd      off

# Uncomment this if you would use TLS module:
#TLSEngine          on

# Uncomment this if you would use quota module:
#Quotas            on

# Uncomment this if you would use ratio module:
#Ratios            on

# Port 21 is the standard FTP port.
Port            21

# 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 that the server normally runs at.
User            nobody
Group            nogroup
#<Global>
#DefaultRoot              ~
#</Global>   
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask            022  022
# Normally, we want files to be overwriteable.
AllowOverwrite         off

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
#DelayEngine          off
MaxClientsPerUser 2 "es duerfen nur 2 gelichzeitige Verbindungen"
#MD5FS ~/md5
ServerAdmin xxxxx@xxxx.de
ServerIdent off
AccessGrantMsg "%u ist eingeloggt"


Titel: Re: DefaultRoot funzt nicht
Beitrag von: stonki am 20. Juni 2005, 13:22:54
ja, das war nun die config mit der es nicht geht ? Füge nun mal "defaultroot ~" hinzu und schaue nochmal..


Titel: Re: DefaultRoot funzt nicht
Beitrag von: numx am 20. Juni 2005, 13:57:57
das defaultroot ist nur auskommentiert weil es nicht damit geht. Es funzt nicht wenn ich defaultroot ~ eingebe.