FTP権限の問題を解決するには?

FTP権限の問題を解決するには?

FTPサーバーとユーザーが設定されました。しかし、ファイルをアップロードまたは編集できないようです。

ユーザーが777権限を入力した場合も同様です。ユーザーのルートフォルダにファイルをアップロードすることもできません。

サーバーオペレーティングシステム:Ubuntu

クライアントオペレーティングシステムウィンドウ

FTPサーバー/クライアント:fileZila

丸太:

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

ファイル権限:

ファイル権限

グループとユーザー:

グループとユーザー

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

何が起こっているのか知っていますか?

更新:ファイルが保存されているフォルダの権限を777に変更しましたが、まだ機能しません。

親フォルダ権限

丸太:

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

ベストアンサー1

サーバーが完全に開いているようです。あなたはしたことがありますか?

anonymous_enable=YES
local_enable=NO

ftpこれにより、誰でもユーザー名を使用したり、実際のパスワードを確認せずにFTPサーバーに接続したり、構成済みanonymous(未指定、デフォルト)ユーザーアカウントがアクセスできるすべてのファイルまたはディレクトリにアクセスできます。これらの匿名ログインは、通常のパスワード確認ログインよりも厳密に制御されます。ftp_usernameftp

匿名ユーザーが既存のファイルを上書きすることは許可されていない可能性があるため、アップロードが失敗する可能性がありますvsftpd。匿名ユーザーとして新しいファイルをアップロードする前に、古いファイルを明示的に削除するか名前を変更する必要があると思います。しかし、あなたがいるから

anon_other_write_enable=NO

そうすることはできません。

anonymous_enableWebサイトのメンテナンスを許可するためにFTPサーバーを使用している場合、認証されていないアクセスを許可したくない場合は、これを「いいえ」と「はい」に設定する必要がありますlocal_enable。そうしないと、FTPクライアントを使用している誰でも簡単にWebサイトを破損する可能性があります。

(暗号化のない認証はだから前世紀:セキュアプライベートネットワークでのみFTPアクセスを許可していない場合は、おそらくTLSを介してFTPを設定したかったでしょう! )

おすすめ記事