Har oprettet en FTP-server og bruger. men det ser ud til, at jeg ikke er i stand til at uploade eller redigere nogen fil.
Selvom brugeren har udfyldt 777 tilladelse. Jeg kan ikke engang uploade filer til brugerens rodmappe.
Server OS: Ubuntu
Client OS windows
FTP server / Client: fileZila
Log:
Status: Connection established, waiting for welcome message... Status: Insecure server, it does not support FTP over TLS. Status: Server does not support non-ASCII characters. Status: Logged in Status: Starting download of /var/www/html/wp/staged/wp-content/themes/Newspaper/Newspaper/woocommerce/single-product.php Status: File transfer successful, transferred 1,193 bytes in 1 second Status: Starting download of /var/www/html/wp/staged/wp-content/themes/Newspaper/Newspaper/woocommerce/single-product.php Status: File transfer successful, transferred 1,193 bytes in 1 second Status: Starting upload of C:\Users\User\AppData\Local\Temp\fz3temp-2\single-product.php Command: PASV Response: 227 Entering Passive Mode (165,227,173,119,117,244). Command: STOR single-product.php Response: 550 Permission denied. Error: Critical file transfer error
Filtilladelse:
Grupper og brugere:
vsftpd.conf:
# Standalone mode listen=YES max_clients=200 max_per_ip=4 # Access rights anonymous_enable=YES local_enable=NO write_enable=YES anon_upload_enable=YES anon_mkdir_write_enable=NO anon_other_write_enable=NO # Security anon_world_readable_only=NO connect_from_port_20=YES hide_ids=YES pasv_min_port=50000 pasv_max_port=60000 # Features xferlog_enable=YES ls_recurse_enable=NO ascii_download_enable=NO async_abor_enable=YES # Performance one_process_model=YES idle_session_timeout=120 data_connection_timeout=300 accept_timeout=60 connect_timeout=60 anon_max_rate=50000 anon_mkdir_write_enable=NO anon_other_write_enable=NO #Userlist userlist_deny=NO userlist_enable=YES userlist_file=/etc/vsftpd.allowed_users
vsftpd.allowed_users:
ftpuser
Enhver idé hvad der foregår her?
Opdatering: Jeg har ændret tilladelsen til den mappe, der indeholder filen til 777, og den fungerer stadig ikke.
log:
Status: Logged in Status: Starting download of /var/www/html/wp/staged/wp-content/themes/Newspaper/Newspaper/woocommerce/single-product.php Status: File transfer successful, transferred 1,193 bytes in 1 second Status: Starting upload of C:\Users\User\AppData\Local\Temp\fz3temp-2\single-product.php Command: PASV Response: 227 Entering Passive Mode (*xxxxxxxxxxxx*). Command: STOR single-product.php Response: 550 Permission denied. Error: Critical file transfer error Status: Retrieving directory listing of "/var/www/html/wp/staged/wp-content/themes/Newspaper/Newspaper"... Status: Directory listing of "/var/www/html/wp/staged/wp-content/themes/Newspaper/Newspaper" successful Status: Disconnected from server Status: Connection closed by server
Kommentarer
Svar
Jeg har afinstalleret vsftpd ved hjælp af:
sudo apt-get purge vsfpt
Konfigurerede det derefter ved hjælp af denne enkle guide: Sådan opsættes vsftpd
Jeg ved stadig ikke, hvad der var problemet, men det fungerer nu.
Kommentarer
- For mig behøvede jeg ikke ' at gøre noget andet end at installere
vsftpd
, kommentar for at indstillewrite_enable=YES
og (don ' glem ikke!) Genstartvsftpd
(sudo systemctl restart vsftpd
) (Debian 10).
C:\Users\User\AppData\Local\Temp\fz3temp-2
. også en anden ting er wrt:Status: Server does not support non-ASCII characters.
at dit filnavnsingle-product.php
indeholder en bindestreg-
som er et ikke-ascii-tegn, prøv at omdøbe og fjerne bindestreg fra filnavnet og se om det bliver fint, når du prøver at uploade igen.