www.ProFTPD.de
13. März 2007, 22:02:18 *
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: PWD zeigt in einer chroot nur /  (Gelesen 212 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
obiwan
ProFTPD
*
Offline Offline

Beiträge: 3


Profil anzeigen E-Mail
« 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>
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 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>
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
obiwan
ProFTPD
*
Offline Offline

Beiträge: 3


Profil anzeigen E-Mail
« Antwort #2 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>
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.051 Sekunden mit 16 Zugriffen.