PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : proftpd, beachtet proftpd.conf auch nicht!!!



Linuxexplorer
11.10.03, 17:29
Hi!

Also jetzt reicht's mir dann gleich mit diesen FTP-servern...
Ich habe Proftpd installiert, und unter /etc/proftpd.conf die Konfigurationsdatei angelegt.
Aber Proftpd scheint sie nicht zu beachten, denn beim Anmelden an den FTP-Server erscheint immer noch "(ProFTPD Default Installation)"!!
Auch der Anonymous Login und das Default Root funktionieren nicht!! :mad:

Hier meine Config:



# 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 "FTP-Server"
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

# 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 ftpserver
Group FTPgroup

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

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /Files>
User ftpan
Group FTPgroup

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

# Limit the maximum number of anonymous logins
MaxClients 10

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

<Directory upload/*>
<Limit READ WRITE>
DenyAll
</Limit>

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

</Anonymous>



Kann mir vielleicht Jemand erklären, warum dass nicht funktioniert?:confused:
Habe bald keine Nerven mehr zum pröblen..

MFG: Linuxexplorer

Berufspenner
11.10.03, 17:59
Hi

Dumme frage, aber hast du nach jeder Änderung den ProFTPd neu gestartet? Kommen irgendwelche Fehlermeldungen?

Cu
André

Linuxexplorer
11.10.03, 18:41
Ja, ich habe Proftpd neu gestartet. Da ich es nicht fertig gebracht habe, Proftpd per inetd zu starten, habe ich ihn einfach manuel gestartet und dann mit kill -9 PID abgeschossen, um die Änderungen wirksam zu machen (d.h dass er die Config nochmal liest)

An was könnte es noch liegen? Mit wu-ftpd hatte ich das gleiche Problem..:mad:
Ich weiss nicht mehr weiter...

Bye, Linuxexplorer

PS: Könnte es an den Zugriffsrechten für die Konfigurationsdateien liegen? Ich habe sie für alle auf readonly gestellt.

Jasper
11.10.03, 19:44
Original geschrieben von Linuxexplorer

Kann mir vielleicht Jemand erklären, warum dass nicht funktioniert?:confused:
Habe bald keine Nerven mehr zum pröblen..


weil proftpd deine config vielleicht gar nicht verwendet? steht in irgendeinem startskript vielleicht sowas wie '-c pfad'?

um herauszubekommen, wo proftpd per default nach seiner config sucht:

strace proftpd -t 2>&1 | grep proftpd.conf


-j

Doh!
12.10.03, 04:22
ich nehme an, Du hast Proftpd selbst kompiliert, aber beim kompilieren nicht ./configure --sysconfigdir=/etc angegeben. In dem Fall wird dann das Configfile standardmäßig aus PREFIX/etc (PREFIX hast Du beim kompilieren hoffentlich angegeben, falls nicht wird per default /usr/local/proftpd genommen).

./configure --help hätte Dir geholfen.

Linuxexplorer
12.10.03, 11:19
ich glaube, daran könnte es liegen. Werde es gleich mal ausprobieren.
Vielen Dank!

PS: Könnte das das gleiche Problem sein, wie beim wu-ftp? Dort findet er die Config auch nicht!

MFG: Linuxexplorer

Linuxexplorer
12.10.03, 11:46
Hey vielen Dank, das war das Problem!!:) :)

MFG: Linuxexplorer