Proftpd Config Problem

Backup, Restore und Transfer von Daten
Post Reply
nemix
Posts: 7
Joined: 2003-09-21 21:15
 

Proftpd Config Problem

Post by nemix »

Hab nen kleines Problem mit dem ProFtpd.

Und zwar soll auf der nächsten Lanparty ein Linux FTP Server laufen für Patche und kleine Uploads von den Users. Ist nur eine 20Gb Platte drin, also kein Warez Zeug oder so. Wird rigoros gelöscht, nur damit keiner denkt ich fördere Raubkopien.

Also nun zu meinem Problem:

Es soll einen Anonymous Zugriff geben, der in den Ordner /home/ftp/Patche lesen darf und sich halt Windows Patche usw. saugen "darf".
Dann soll Anonymous zugriff auf /home/ftp/Upload haben, dort darf er Verzeichnisse erstellen schreiben, aber nicht löschen, weil sonst kommt son Idiot daher und löscht alles...

Ich sitzt jetzt seit 2,5 davor und finde den Fehler nicht :oops:

Kann sich vielleicht wer meinen Config angucken und mir nen Tipp geben?

System ist Mandrake 10.1 mit 2.4´er Kernel falls das relevant ist.

Hier die CFG:

[root@lx-ftp etc]# more proftpd.conf
ServerType standalone
ServerAdmin root
DefaultServer on
Port 21
MaxInstances 20
UseReverseDNS off
PersistentPasswd off

<Global>
AccessGrantMsg "Willkommen auf dem FTP Server der WFS-Lan visit http://www.wildefingerspiele.de"
DisplayConnect /etc/ftpissue
DeferWelcome on
Umask 022
DefaultRoot /home/ftp

User ftp
Group ftp

AllowStoreRestart on
AllowRetrieveRestart on
AllowOverwrite on

AllowOverride off
IdentLookups off

PathDenyFilter "(\.ftpaccess)|(\.htaccess)$"

RequireValidShell off

<Limit SITE_CHMOD>
DenyAll
</Limit>

</Global>

<VirtualHost 10.10.99.2>
ServerName "Wildefingerspiele FTP"

<Directory /home/ftp/*/*>
<Limit ALL>
AllowALL
</Limit>
</Directory>

<Anonymous /home/ftp>

<Limit LOGIN>
AllowAll
</Limit>

UserAlias anonymous ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
MaxClients 10
AnonRequirePassword off

<Directory /home/ftp/Upload>
<Limit DELE>
DenyALL
</Limit>
</Directory>


<Directory /home/ftp/Patche>
<Limit WRITE>
DenyALL
</Limit>
</Directory>


</Anonymous>
Vielen dank schonmal für die Hilfe....
suntzu
Posts: 669
Joined: 2002-12-20 19:47
Location: Mönchengladbach
Contact:
 

Re: Proftpd Config Problem

Post by suntzu »

Hi,

aus meiner Standard-Konfiguration:

Code: Select all

# A basic anonymous configuration, with an upload directory.
<Anonymous ~ftp>
  User                          ftp
  Group                         ftp
  AccessGrantMsg                "Anonymous login ok, restrictions apply."

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    5 "Sorry, max %m users -- try again later"

  # Put the user into /pub right after login
  DefaultChdir                  /pub

  # 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 STOR>
      AllowAll
    </Limit>
  </Directory>
        # Don't write anonymous accesses to the system wtmp file (good idea!)
        WtmpLog                 off

        # Logging for the anonymous transfers
        ExtendedLog             /var/log/proftpd/access.log WRITE,READ default
        ExtendedLog             /var/log/proftpd/auth.log AUTH auth
        AnonRequirePassword     off
        ShowSymlinks    on
</Anonymous>
nemix
Posts: 7
Joined: 2003-09-21 21:15
 

Re: Proftpd Config Problem

Post by nemix »

Aha?

Bringt mich irgendwie kein Stück voran, oder hab ich was übersehen

AllowOverwrite bringt ja auch nichts, Dirs erstellen soll ja erlaubt sein.....
Post Reply