• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

FTP Upload schlägt fehl?

Shorty

Registered User
Hallo,
Ich habe einen vServer Cloud bei 1und1 mit Plesk Onyx und habe ein Problem mit dem FTP Upload das Funktioniert nur über Root Zugriff,wen ich es über den Normalen Domain FTP Zugang mache bricht er nach einer Gewissen Zeit mit folgender Fehlermeldung im ab.


Kann die Eigenschaft der Datei nicht ändern.

Erlaubnis verweigert
Fehlercode: 3
Fehlernachricht vom Server: Premission denied

Ich weiss das es bedeutet das er keine Rechte hat,aber was ich nicht weiss warum nicht?

Ich habe in Plesk den Kunden eingerichtet und nichts verändert.
 
man könnte nun an der Konsole nachschauen, wem die Datei / die Verzeichnisse gehören und wie die Rechte denn konkret aussehen. Dann könnte man prüfen, ob denn der User, mit dem man es versucht, da dann entsprechende Rechte hätte.

Ich finde es übrigens sehr gruselig, daß ftp-Zugriff für den root-User erlaubt ist. Da hat also wohl jemand schon mal sinnvolle default-Einstellungen des ftp-Servers geändert...
 
Wenn ich die Dateien über Root hochlade gehören sie Root,wenn ich sie über den Kunden hochlade gehören sie dem Kunden.

An den default-Einstellungen des ftp-Servers wurde von mir nichts geändert,
kann es sein das ein vServer Cloud für webhosting Projekte nicht geeignet ist?

Ich hatte schon mal Zwei ich sag mal Normale vServer mit denen hatte ich nicht soviele Probleme mit eMails und FTP:
 
Mit Plesk Onyx wird root bei FTP abgewiesen, gerade getestet auf einem meiner Server.
root ist in /etc/ftpusers drin und somit ausgeschlossen.

Da stimmt was mit deiner Installation und deiner Konfiguration des ProFTP nicht. Oder das Linux-Image ist per Default fehlkonfiguriert.
 
Last edited by a moderator:
Mit Plesk Onyx wird root bei FTP abgewiesen, gerade getestet auf einem meiner Server.
root ist in /etc/ftpusers drin und somit ausgeschlossen.

Da stimmt was mit deiner Installation und deiner Konfiguration des ProFTP nicht. Oder das Linux-Image ist per Default fehlkonfiguriert.
Das etwas nicht stimmt gebe ich dir recht,aber auch wenn ich den Server nun komplett Neu aufsetze sind die Fehler wider da,ich habe ihn schon merfach Neu gemacht weil ich auch davon ausgegeangen bin das bei der Installierung etwas Falsch gelaufen ist aber ohne erfolg.

Was kann oder könnte ich den nun machen das der Fehler behoben ist?
 
@marce
In welcher Log genau,wo finde ich die richtige?

@GwenDragon
Inhalt der /etc/proftpd.conf
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			standalone
ServerType			inetd
DefaultServer			on

<Global>
DefaultRoot	~		psacln
AllowOverwrite		on

# Prefer to put here directives allowed in server config and Global contexts.
# From http://www.proftpd.org/docs/howto/Vhost.html :
# "any configuration directives inside the "server config" section do not apply outside of the context."

DefaultTransferMode	binary
UseFtpUsers			on

TimesGMT			off
SetEnv TZ :/etc/localtime
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				022

# Primary log file mest be outside of system logrotate province.
TransferLog /var/log/plesk/xferlog

# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd
AuthGroupFile	/etc/group

IdentLookups off

<IfModule mod_tls.c>
	# common settings for all virtual hosts
	TLSEngine on
	TLSRequired off

	TLSLog /var/log/plesk/ftp_tls.log

	TLSRSACertificateFile /opt/psa/admin/conf/httpsd.pem
	TLSRSACertificateKeyFile /opt/psa/admin/conf/httpsd.pem

	# Authenticate clients that want to use FTP over TLS?
	TLSVerifyClient off

	# Allow SSL/TLS renegotiations when the client requests them, but
	# do not force the renegotations.  Some clients do not support
	# SSL/TLS renegotiations; when mod_tls forces a renegotiation, these
	# clients will close the data connection, or there will be a timeout
	# on an idle data connection.
	TLSRenegotiate none

	# As of ProFTPD 1.3.3rc1, mod_tls only accepts SSL/TLS data connections 
	# that reuse the SSL session of the control connection, as a security measure.
	# Unfortunately, there are some clients (e.g. curl) which do not reuse SSL sessions. 
	TLSOptions NoSessionReuseRequired
</IfModule>
</Global>

# Port 21 is the standard FTP port.
Port				21
# 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

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

<Directory /var/www/vhosts>
	GroupOwner	psacln
</Directory>

UseReverseDNS off

Include /etc/proftpd.d/*.conf
Inhalte der /etc/proftpd.d/50-plesk.conf
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

# Global section
<Global>
<IfModule mod_tls.c>
    TLSEngine on
    TLSRequired off
</IfModule>
</Global>
Inhalte der /etc/proftpd.d/ssl.conf
Code:
<IfModule mod_tls.c>
TLSCipherSuite HIGH:!aNULL:!MD5
</IfModule>
<IfModule mod_tls.c>
TLSProtocol TLSv1 TLSv1.1 TLSv1.2
</IfModule>
 
Lerne wie du dir selbst helfen kannst.
Du kannst z.B. anzeigen, auf welche Dateien ein Prozess zugreift.
Dafür brauchst du das Tool lsof.

Zum installieren:
PHP:
apt-get install lsof

Bei mir sieht das so aus:

Code:
root@miranda ~ # ps aux | grep proftpd
proftpd   1071  0.0  0.0 125804  4356 ?        Ss   Jun18   0:01 proftpd: (accepting connections)
root     29618  0.0  0.0  13996   956 pts/0    S+   09:07   0:00 grep proftpd

root@miranda ~ # ps aux | grep proftpd
proftpd   1071  0.0  0.0 125804  4356 ?        Ss   Jun18   0:01 proftpd: (accepting connections)
root     29618  0.0  0.0  13996   956 pts/0    S+   09:07   0:00 grep proftpd
root@miranda ~ # lsof -p 1071
COMMAND  PID    USER   FD   TYPE  DEVICE SIZE/OFF     NODE NAME
proftpd 1071 proftpd  cwd    DIR     9,2     4096        2 /
proftpd 1071 proftpd  rtd    DIR     9,2     4096        2 /
proftpd 1071 proftpd  txt    REG     9,2   866272 63967981 /usr/sbin/proftpd
proftpd 1071 proftpd  mem    REG     9,2    22928 12061764 /lib/x86_64-linux-gnu/libnss_dns-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    23424 64094727 /usr/lib/proftpd/mod_ifsession.so
proftpd 1071 proftpd  mem    REG     9,2    18928 64097096 /usr/lib/proftpd/mod_tls_memcache.so
proftpd 1071 proftpd  mem    REG     9,2    10496 64094728 /usr/lib/proftpd/mod_ifversion.so
proftpd 1071 proftpd  mem    REG     9,2    23200 64094722 /usr/lib/proftpd/mod_deflate.so
proftpd 1071 proftpd  mem    REG     9,2    19248 64094720 /usr/lib/proftpd/mod_copy.so
proftpd 1071 proftpd  mem    REG     9,2    10528 64097125 /usr/lib/proftpd/mod_unique_id.so
proftpd 1071 proftpd  mem    REG     9,2    14624 64094726 /usr/lib/proftpd/mod_facl.so
proftpd 1071 proftpd  mem    REG     9,2    19152 64097012 /usr/lib/proftpd/mod_sftp_pam.so
proftpd 1071 proftpd  mem    REG     9,2   105088 12061482 /lib/x86_64-linux-gnu/libz.so.1.2.8
proftpd 1071 proftpd  mem    REG     9,2   417792 64097011 /usr/lib/proftpd/mod_sftp.so
proftpd 1071 proftpd  mem    REG     9,2    19120 64097054 /usr/lib/proftpd/mod_site_misc.so
proftpd 1071 proftpd  mem    REG     9,2    23920 64096983 /usr/lib/proftpd/mod_ratio.so
proftpd 1071 proftpd  mem    REG     9,2    40064 64097053 /usr/lib/proftpd/mod_shaper.so
proftpd 1071 proftpd  mem    REG     9,2    36096 64094724 /usr/lib/proftpd/mod_exec.so
proftpd 1071 proftpd  mem    REG     9,2    14720 64094723 /usr/lib/proftpd/mod_dynmasq.so
proftpd 1071 proftpd  mem    REG     9,2    10528 64097129 /usr/lib/proftpd/mod_wrap2_file.so
proftpd 1071 proftpd  mem    REG     9,2    27616 64097128 /usr/lib/proftpd/mod_wrap2.so
proftpd 1071 proftpd  mem    REG     9,2    48288 64094256 /usr/lib/proftpd/mod_ban.so
proftpd 1071 proftpd  mem    REG     9,2    10496 64094730 /usr/lib/proftpd/mod_load.so
proftpd 1071 proftpd  mem    REG     9,2    44288 64096984 /usr/lib/proftpd/mod_rewrite.so
proftpd 1071 proftpd  mem    REG     9,2    39784 12061436 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
proftpd 1071 proftpd  mem    REG     9,2    19000 64097127 /usr/lib/proftpd/mod_wrap.so
proftpd 1071 proftpd  mem    REG     9,2    10368 64094734 /usr/lib/proftpd/mod_quotatab_radius.so
proftpd 1071 proftpd  mem    REG     9,2    10400 64094732 /usr/lib/proftpd/mod_quotatab_file.so
proftpd 1071 proftpd  mem    REG     9,2    66240 64094731 /usr/lib/proftpd/mod_quotatab.so
proftpd 1071 proftpd  mem    REG     9,2    48800 64094736 /usr/lib/proftpd/mod_radius.so
proftpd 1071 proftpd  mem    REG     9,2   142528 64097095 /usr/lib/proftpd/mod_tls.so
proftpd 1071 proftpd  mem    REG     9,2    31744 64094721 /usr/lib/proftpd/mod_ctrls_admin.so
proftpd 1071 proftpd  mem    REG     9,2    47688 12061767 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    89064 12061762 /lib/x86_64-linux-gnu/libnsl-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    31616 12061763 /lib/x86_64-linux-gnu/libnss_compat-2.24.so
proftpd 1071 proftpd  mem    REG     9,2  2926944 64234694 /usr/lib/locale/locale-archive
proftpd 1071 proftpd  mem    REG     9,2    47632 12061765 /lib/x86_64-linux-gnu/libnss_files-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    22944 12061397 /lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
proftpd 1071 proftpd  mem    REG     9,2    84848 12061771 /lib/x86_64-linux-gnu/libresolv-2.24.so
proftpd 1071 proftpd  mem    REG     9,2   120752 12061505 /lib/x86_64-linux-gnu/libaudit.so.1.0.0
proftpd 1071 proftpd  mem    REG     9,2    92584 12058672 /lib/x86_64-linux-gnu/libgcc_s.so.1
proftpd 1071 proftpd  mem    REG     9,2  1063328 12061759 /lib/x86_64-linux-gnu/libm-2.24.so
proftpd 1071 proftpd  mem    REG     9,2  1566168 64227808 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
proftpd 1071 proftpd  mem    REG     9,2   109296 64226346 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
proftpd 1071 proftpd  mem    REG     9,2   135440 12061770 /lib/x86_64-linux-gnu/libpthread-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    18832 12061394 /lib/x86_64-linux-gnu/libattr.so.1.1.0
proftpd 1071 proftpd  mem    REG     9,2  1689360 12061512 /lib/x86_64-linux-gnu/libc-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    14640 12061758 /lib/x86_64-linux-gnu/libdl-2.24.so
proftpd 1071 proftpd  mem    REG     9,2    56016 12061525 /lib/x86_64-linux-gnu/libpam.so.0.83.1
proftpd 1071 proftpd  mem    REG     9,2    18840 64228888 /usr/lib/x86_64-linux-gnu/libmemcachedutil.so.2.0.0
proftpd 1071 proftpd  mem    REG     9,2   204216 64228885 /usr/lib/x86_64-linux-gnu/libmemcached.so.11.0.0
proftpd 1071 proftpd  mem    REG     9,2    22768 12061377 /lib/x86_64-linux-gnu/libcap.so.2.25
proftpd 1071 proftpd  mem    REG     9,2  2492224 64227587 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
proftpd 1071 proftpd  mem    REG     9,2   431232 64227678 /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2
proftpd 1071 proftpd  mem    REG     9,2   464824 12058844 /lib/x86_64-linux-gnu/libpcre.so.3.13.3
proftpd 1071 proftpd  mem    REG     9,2    10128 64227259 /usr/lib/x86_64-linux-gnu/libpcreposix.so.3.13.3
proftpd 1071 proftpd  mem    REG     9,2    35488 12061501 /lib/x86_64-linux-gnu/libacl.so.1.1.0
proftpd 1071 proftpd  mem    REG     9,2    39256 12061757 /lib/x86_64-linux-gnu/libcrypt-2.24.so
proftpd 1071 proftpd  mem    REG     9,2   153288 12058641 /lib/x86_64-linux-gnu/ld-2.24.so
proftpd 1071 proftpd    0u  IPv6 1892854      0t0      TCP *:ftp (LISTEN)
proftpd 1071 proftpd    3r   REG     9,2     2932 25165836 /etc/protocols
proftpd 1071 proftpd    4w   REG     9,2     4928 55314117 /var/log/proftpd/proftpd.log
proftpd 1071 proftpd    5r   REG     9,2     1010 25166778 /etc/group
proftpd 1071 proftpd    6w   REG     9,2        0 55315058 /var/log/proftpd/controls.log
proftpd 1071 proftpd    7u   REG    0,18      656  1892851 /run/proftpd.scoreboard
proftpd 1071 proftpd    8u   REG    0,18        0  1892852 /run/proftpd.scoreboard.lck

Falls du keine Lust hast alle Einträge einzeln durchzugehen, auch kein Problem. Mit grep pipen und schon hast du genau das, was du wissen willst:

Code:
root@miranda ~ # lsof -p 1071 | grep log
proftpd 1071 proftpd    4w   REG     9,2     4928 55314117 /var/log/proftpd/proftpd.log
proftpd 1071 proftpd    6w   REG     9,2        0 55315058 /var/log/proftpd/controls.log

Bei mir liegt ist die Logdatei in /var/log/proftpd/proftpd.log und /var/log/proftpd/controls.log

Bei dir kann das aufgrund von Plesk wieder ganz anders sein.

Zum anzeigen der Logdatei: tail -f logdatei
Dann verbinden und gucken was passiert.
 
Vielen dank habe da aber noch mal eine Frage,ich vermute immer noch das meine Image die bei einer Neuinstallation auf meinen Server gespielt wird nicht sauber Installiert wird und das sollte ich erst einmal beseitigen aber wie kann ich das machen.

Da es ein vServer Cloud bei 1und1 ist habe ich doch auf eine Neue Fehlerfreie Image sprich diese zu ändern keine möglichkeit oder?
 
Wird allgemein wohl so gehen bei einer Einrichtung:
In Verwaltung für vServer gehen
Plesk-Lizenz-ID generieren lassen für später
Linux-Minimalsystem (nicht ein OS-Image!) erstellen
Linux updaten
Für dich notwendige Server-Dienste und Programme installieren
Plesk-installer herunterladen und Plesk einrichten (Tip)
 
Nein bei 1und1 ist es ganz anderst,da gibt es z.b. keine Plesk-Lizenz-ID die man eingeben muss,es wird alles Automatisch gemacht man muss am ende nur noch Plesk einrichten.

Ich habe heute morgen noch mal mit dem Support gesprochen die haben mir gesagt das 1und1 noch eine Firewall vor den Server geschaltet hat und man da die Ports noch frei geben müsste,das versuche ich nun gerade aber es sieht so aus als geht das nicht bei allen Ports die ich benötige und es gehen auch nur Eingehend Ports.
 
Back
Top