Titel: PWD zeigt in einer chroot nur / Beitrag von: obiwan am 14. Oktober 2004, 11:41:12 Hallo Leute!
Ich habe bei mir proftp erfolgreich installiert :lol: . Es läuft auch ohne Probleme. Nun möchte ich in einer chroot Umgebung nicht nur das Homeverzeichnis als Stammverzeichnis / sehen, sondern auch sämtliche übergeordnete Verzeichnisse. Gibt es für dies Problem eine Lösung :?: :?: :idea: Beispiel: dies wird dargestellt: ftp> pwd 257 "/" is current directory. dies würde ich gerne sehen ftp> pwd 257 "/edi_transfer/users/wmtiger" is current directory. Meine Konfigurationsdatei: # 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 "Vodafone FTPserver" ServerType standalone TimesGMT off DefaultServer on RootLogin off IdentLookups off UseReverseDNS off AccessDenyMsg "Zugriff für %u ist verweigert worden" # Port 21 is the standard FTP port. Port 21 # Loginversuche bevor Verbindung getrennt werden soll MaxLoginAttempts 3 # Setzen des log-files SystemLog /var/log/proftp.log # 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 nobody Group nogroup # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> DisplayLogin welcome.msg DisplayFirstChdir .message <Limit LOGIN> Order Allow,Deny ALLOWUser bkkftp01 ALLOWUser mcoftp01 DenyAll </Limit> Titel: Re: PWD zeigt in einer chroot nur / Beitrag von: stonki am 14. Oktober 2004, 11:51:58 Zitat von: "obiwan" Hallo Leute! Ich habe bei mir proftp erfolgreich installiert :lol: . Es läuft auch ohne Probleme. Nun möchte ich in einer chroot Umgebung nicht nur das Homeverzeichnis als Stammverzeichnis / sehen, sondern auch sämtliche übergeordnete Verzeichnisse. Gibt es für dies Problem eine Lösung :?: :?: :idea: NEIN. nicht mit Defaultroot. Du kannst aber z.B. defaultroot weglassen und dann mit LIMIT arbeiten <Directory /home/stonki> <Limit ALL> DenyALL </limit> </directory> <Directory /home/stonki/jetzt_aber> <Limit ALL> AllowAll </limit> </directory> Titel: diese Idee hatte ich schon Beitrag von: obiwan am 14. Oktober 2004, 12:36:53 Dies hatte ich auch versucht. Auf diese Weise verbleibe ich wie gewünscht auch im Stammverzeichnis. Leider kann ich dann aber nicht in die Unterverzeichnisse wechseln. Dies würde ich aber gerne. Gebe es für dies Problem eine Lösung. Dann könnte ich auch so damit leben.
<Limit CWD> Order Allow,Deny DenyAll </Limit> |