wo speichert plesk die proftpd.conf?


nova-s

New Member
Hi,

hab zum Test einen 1&1 Vserver mit Suse9.3, Plesk8.0, Apache2.0.53, Perl5.8.6

Bin relativer Linux-Neuling und schaffe es nicht, das proftpd.conf file zu finden, welches anscheinend von Plesk erzeugt und für den ftp-zugang eines Kunden des vhost-webservers verwendet wird, möchte nämlich die .dotfiles angezeigt bekommen und das Timeout raufsetzen.

Plesk/yast ist aktuell.


Mein 2. Problem (k.a. ob plesk überhaupt damit was zu tun hat):
Per httpd gestartete perl-scripte arbeiten im root / verzeichnis und nicht in dem, wo sie gestartet wurden.
also z.b. /srv/www/vhosts/s11111111.onlinehome.info/httpdocs/cgi-local/test.pl:

open I,"<1.txt" or die "cant open $!";
und
open I,">./1.txt" or die "cant open $!";

versucht, die datei `/1.txt' zu öffnen/schreiben.
starte ich die scripte v.d. konsole, verhalten sie sich "normal", benutzen also das aktuelle Verzeichnis.

mein workaround:
Code:
#!/usr/bin/perl
use strict;
my ($dir,$script) = $0 =~ m/^(.*)[\/\\](.*)$/;
chdir $dir;
Aber irgendwo muss man das doch grundsätzlich einstellen können?

Danke schonmal und sry, falls ich mich nur zu blöd anstell...:)

EDIT: ich versuch mal, auf groß- Kleinschreibung zu achten
 
Last edited by a moderator:
Ja, danke, findet leider nur
/etc/proftpd.conf

Was ich dort eintrage, wird aber nicht beachtet - es muss noch ein config von Plesk aus geben.
 
/etc/proftpd.conf sieht so aus:
Code:
#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#

# 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			"ProFTPD"
ServerType  inetd
DefaultServer			on
<Global>
DefaultRoot	~		psacln
AllowOverwrite		on
</Global>
DefaultTransferMode	binary
UseFtpUsers			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

#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation 
#with Anonymous FTP feature in PSA control panel.

#Include directive should point to place where FTP Virtual Hosts configurations
#preserved

ScoreboardFile /var/run/proftpd/scoreboard

# Primary log file mest be outside of system logrotate province

TransferLog /usr/local/psa/var/log/xferlog

#Change default group for new files and directories in vhosts dir to psacln

<Directory /srv/www/vhosts>
	GroupOwner	psacln
	ListOptions "-a"
</Directory>

# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd

# delay on login off
IdentLookups off 
UseReverseDNS off

AuthGroupFile	/etc/group

TimeoutIdle 1000

Include /etc/proftpd.include
/etc/proftpd.include ist leer.

Das Timeout bleibt jedoch bei 300 Sek.

Was mach ich nur falsch??
 
Last edited by a moderator:

Back
Top