Debian 11 サーバー - vsftpd 仮想ユーザーが動作しません。権限の問題がありますか?

Debian 11 サーバー - vsftpd 仮想ユーザーが動作しません。権限の問題がありますか?

私のローカルユーザーに対してvsftpdが有効になっているDebian 11仮想マシンがあります。 FTP専用の仮想ユーザー(読み取りと書き込みをホームディレクトリに制限する必要がある)を作成したいと思います。私はこれに従うhttps://help.ubuntu.com/community/vsftpd残念ながら、この方法は機能しないだけでなく、私のローカルユーザーにとっても問題になります。ユーザー名は記載されてeditorいますが、残り(パスなど)はガイドと同じです。

ローカルユーザー接続(Filezillaからコピー、パスワードが100%正確)

Status: Connecting to 10.0.1.8:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command: USER tomsikr
Response: 331 Please specify the password.
Command: PASS **********
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server

仮想ユーザー接続

Status: Connecting to 10.0.1.8:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command: USER editor
Response: 331 Please specify the password.
Command: PASS ******
Response: 500 OOPS: cannot change directory:/home/vftp/editor
Error: Critical error: Could not connect to server

/etc/vsftpd.conf(pastebin com/9k9r3rLe)

listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
virtual_use_local_privs=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES

xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES

log_ftp_protocol=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO

userlist_deny=YES
userlist_file=/etc/vsftpd.denied_users

pasv_enable=Yes
pasv_min_port=10100
pasv_max_port=10110

pam_service_name=vsftpd.virtual

guest_enable=YES

user_sub_token=$USER

local_root=/home/vftp/$USER

chroot_local_user=YES

hide_ids=YES

/etc/vsftpd.chroot_list(私のローカルユーザー(私とも呼ばれます)のみが含まれています。)

tomsikr

/etc/vsftpd.denied_users

root

仮想ユーザーはeditor次の場所にあります。/etc/vsftpd/vsftpd-virtual-user.db

/etc/pam.d/vsftpd.virtual

#%PAM-1.0 auth required pam_userdb.so db=/etc/vsftpd/vsftpd-virtual-user
account required pam_userdb.so db=/etc/vsftpd/vsftpd-virtual-user
session required pam_loginuid.so

壁にぶつかったので、どんな助けでも大いに感謝します。私はLinux管理者ではありません。即席で学んでいます。

ベストアンサー1

おすすめ記事