プロが教えるわが家の防犯対策術!

こちらのサイトを参考にしているのですが
http://www.aconus.com/~oyaji/centos/vsftpd_cento …
http://centossrv.com/vsftpd.shtml

サーバー : VSFTPD+SSL
クライアント : SmartFTP
ユーザー : user01

という環境でファイルをアップロードできません。


vsftpd.confの設定は以下のとおりです。

anonymous_enable=NO
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
tcp_wrappers=YES
user_localtime=YES
force_dot_files=YES
ssl_enable=YES
ssl_tlsv1=YES
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem


そしてuser_listとchroot_listにuser01を追加しました。

SmartFTPで接続はできるのですが、いざファイルをアップロードしようとするとできないのです。


ログをみると次の4行が赤い文字で警告されていました。

550 Could not get file size.
550 Could not get file modification time.
550 Failed to change directory.
550 Could not get file modification time.

以下はログ全文です。

SmartFTP v3.0.1019.6
Resolving host name "***.***.***.***"
Connecting to ***.***.***.*** Port: 21
Connected to ***.***.***.***.
220 (vsFTPd 2.0.5)
AUTH TLS
234 Proceed with negotiation.
Connected. Exchanging encryption keys...
Session Cipher: 168 bit 3DES
TLS encrypted session established.
PBSZ 0
200 PBSZ set to 0.
USER user01
331 Please specify the password.
PASS (hidden)
230 Login successful.
SYST
215 UNIX Type: L8
Detected Server Type: UNIX
FEAT
211-Features:
AUTH SSL
AUTH TLS
EPRT
EPSV
MDTM
PASV
PBSZ
PROT
REST STREAM
SIZE
TVFS
211 End
PWD
257 "/home/user01"
CWD /var/www/html
250 Directory successfully changed.
PWD
257 "/var/www/html"
TYPE A
200 Switching to ASCII mode.
PROT P
200 PROT now Private.
PASV
227 Entering Passive Mode (***,***,***,***,***,***)
Opening data connection to ***.***.***.*** Port: 17465
LIST -aL
Connected. Exchanging encryption keys...
150 Here comes the directory listing.
Session Cipher: 168 bit 3DES
TLS encrypted session established.
240 bytes transferred. (905 バイト/s) (265 ms)
226 Directory send OK.
CWD /var/www/html/home
250 Directory successfully changed.
PWD
257 "/var/www/html/home"
PASV
227 Entering Passive Mode (***,***,***,***,***,***)
Opening data connection to ***.***.***.*** Port: 17762
LIST -aL
Connected. Exchanging encryption keys...
150 Here comes the directory listing.
Session Cipher: 168 bit 3DES
TLS encrypted session established.
119 bytes transferred. (586 バイト/s) (203 ms)
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
SIZE index.html
550 Could not get file size. ←ここが赤文字で表示される
MDTM index.html
550 Could not get file modification time.←ここが赤文字で表示される
STAT index.html
213-Status follows:
213 End of status
CWD /var/www/html/home/index.html
550 Failed to change directory.←ここが赤文字で表示される
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (***,***,***,***,***,***)
Opening data connection to ***.***.***.*** Port: 25693
LIST -aL
Connected. Exchanging encryption keys...
150 Here comes the directory listing.
Session Cipher: 168 bit 3DES
TLS encrypted session established.
119 bytes transferred. (695 バイト/s) (171 ms)
226 Directory send OK.
The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
MDTM index.html
550 Could not get file modification time.←ここが赤文字で表示される
STAT index.html
213-Status follows:
213 End of status


また、Smartftpの接続には FTP over SSL Explicit を設定しています。

A 回答 (1件)

ログをそのまま解釈すると、


 user01 が /var/www/html にアクセス権を持っていないように見えます。

user01でLinuxにログインして、/var/www/htmlを読み書きできますか?
    • good
    • 0
この回答へのお礼

おっしゃるとおりでした。
アクセス権を与えて無事アプロードできました。
どうもありがとうございました。

お礼日時:2008/09/15 16:23

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!