www.ProFTPD.de
13. März 2007, 19:51:45 *
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: Nach Login immer im gleichen Verzeichniss ??  (Gelesen 354 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
triali
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« am: 18. Juni 2003, 11:14:06 »

Hallo zusammen

Ich möchte das sich jeder User mit seinem Benutzernamen und Passwort in sein Verzeichniss einloggen kann. Natürlich darf er auch seine Dateien hochladen, ändern und löschen.
Bis anhin hatte ich RedHat 7.3 mit proftpd 1.26 was so auch funktionierte.

Jetzt läuft auf meinem Server Suse 8.1 mit proftpd 1.27
Doch leider komme ich mit jedem User/Benutzername in das GLEICHE Verzeichnis ??
Was natürlich nicht gut ist ...  :lol:
Der DNS Server und Apache funktionieren natürlich ..

Hier meine Config unter Redhat 7.3 proftpd 1.26:

ServerName         "xyz.ch"
ServerIdent         on "FTP Server ready."
ServerAdmin         info@xyz.ch
#ServerType         standart
DefaultServer         on
AccessGrantMsg         "User %u logged in."
#DisplayConnect         /etc/ftpissue
#DisplayLogin         /etc/ftpmotd
#DisplayGoAway         /etc/ftpgoaway
DeferWelcome         off

# Use this to excude users from the chroot
DefaultRoot         ~ !adm

# Use pam to authenticate by default
AuthPAMAuthoritative      on

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups         off
UseReverseDNS off

# Port 21 is the standard FTP port.
Port            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# Default to show dot files in directory listings
LsDefaultOptions      "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228      off
#RootLogin         off
#LoginPasswordPrompt      on
#MaxLoginAttempts      3
#MaxClientsPerHost      none
#AllowForeignAddress      off   # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart      on
AllowStoreRestart      on

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

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

# This is where we want to put the pid file
ScoreboardPath         /var/run

# Normally, we want users to do a few things.
<Global>
  AllowOverwrite      yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
</Global>

# Define the log formats
LogFormat         default   "%h %l %u %t \"%r\" %s %b"
LogFormat         auth   "%v [%P] %h %t \"%r\" %s"


  # We want 'welcome.msg' displayed at login, '.message' displayed in
  # each newly chdired directory and tell users to read README* files.
  DisplayLogin         /welcome.msg
  DisplayFirstChdir      .message
  DisplayReadme         README*

  # Some more cosmetic and not vital stuff
  DirFakeUser         on ftpadm
  DirFakeGroup         on ftpadm

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE SITE_CHMOD>
    DenyAll
  </Limit>

  # An upload directory that allows storing files but not retrieving
  # or creating directories.
  <Directory uploads/*>
    AllowOverwrite      no
    <Limit READ>
      DenyAll
    </Limit>

    <Limit STOR>
      AllowAll
    </Limit>
  </Directory>

  # Don't write anonymous accesses to the system wtmp file (good idea!)
  WtmpLog         off

</Directory>

<VirtualHost www.xyz.ch>
ServerName "www.xyz.ch"
DefaultRoot /home/www.xyz.ch
</VirtualHost>

<VirtualHost www.abc.ch>
ServerName "www.abc.ch"
DefaultRoot /home/www.abc.ch
</VirtualHost>

--------------------------------------------------

Und hier das config File von Suse 8.1 proftpd 1.27:

# (C) www.proftpd.de

# updated 2003-05-12

# by Stonki

 

ServerName "xyz"

ServerType standalone

DefaultServer on

 

# Port 21 is the standard FTP port.

Port 21

 

# Umask 022 is a good standard umask to prevent new dirs and files

# from being group and world writable.

Umask 022

 

# Note that this ONLY works in standalone mode

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>

<VirtualHost www.xyz.ch>
ServerName "www.xyz.ch"
DefaultRoot /home/www.xyz.ch
</VirtualHost>

<VirtualHost www.abc.ch>
ServerName "www.abc.ch"
DefaultRoot /home/www.abc.ch
</VirtualHost>

-----------------------------------------------------

Leider kann ich das alte config file von RedHat unter Suse nicht benutzen, sonst würde ich hier nicht Fragen ...  :wink:

Kann mir jemand sagen was ich am neuen config File ändern oder ergänzen muss ...

Herzlichen Dank
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 am: 18. Juni 2003, 11:17:06 »

Zitat von: "triali"

DefaultRoot         ~ !adm
<VirtualHost www.xyz.ch>
DefaultRoot /home/www.xyz.ch
</VirtualHost>

<VirtualHost www.abc.ch>
DefaultRoot /home/www.abc.ch
</VirtualHost>


also ich mit meinen naiven Gedanken wuerde sagen, dass ProFTPD genau das machst, was Du ihm sagt. Je nachdem auf welche Domain Du Dich einloggst, wirst Du entweder in xyz oder abc eingesperrt.

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

Beiträge: 18


Profil anzeigen
« Antwort #2 am: 18. Juni 2003, 11:27:22 »

Leider funktioniert es immer noch nicht ...


DefaultRoot ~ !adm
<VirtualHost www.xyz.ch>
DefaultRoot /home/www.xyz.ch
</VirtualHost>

<VirtualHost www.abc.ch>
DefaultRoot /home/www.abc.ch
</VirtualHost>  

Komme immer ins gleiche Verzeichniss ...
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #3 am: 18. Juni 2003, 13:17:01 »

Zitat von: "triali"
Leider funktioniert es immer noch nicht ...


DefaultRoot ~ !adm
<VirtualHost www.xyz.ch>
DefaultRoot /home/www.xyz.ch
</VirtualHost>

<VirtualHost www.abc.ch>
DefaultRoot /home/www.abc.ch
</VirtualHost>  

Komme immer ins gleiche Verzeichniss ...


schau Dir den Code bitte noch einmal GANZ genau an :)
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
triali
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« Antwort #4 am: 18. Juni 2003, 14:44:10 »

Ich schau und schau, aber ich finde keinen Anhaltstpunkt warum ich immer ins selbe Verzeichniss komme ...  :roll:

Sorry, aber ich bin mit meinem Latein am ende ....  :cry:
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #5 am: 18. Juni 2003, 16:21:06 »

Su kommst immer nach DefaultRoot
Also
Code:
DefaultRoot /home/www.abc.ch  
oder
Code:
DefaultRoot /home/www.xyz.ch

oder nicht  :?
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
hä ...
Gast
« Antwort #6 am: 18. Juni 2003, 16:45:48 »

Ja, aber das sind ja zwei verschidene Verzeichnisse ..

Verzeichniss 1 www.xyz.ch
Verzeichniss 2 www.abc.ch

Besten Dank für die Hilfe ....  :wink:
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #7 am: 18. Juni 2003, 17:28:50 »

Gehen die auf die selbe IP?  :arrow: Das geht nicht.
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
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.076 Sekunden mit 18 Zugriffen.