F
F
fokin_nikolay19892022-01-26 14:24:15
linux
fokin_nikolay1989, 2022-01-26 14:24:15

Vsftpd virtual user authorization fails?

Authorization of virtual users does not pass through pam.d
=========
vsftpd.conf
=========

listen=YES
background=YES
anonymous_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
ftp_username=ftp
anon_mkdir_write_enable=YES
anon_other_write_enable=NO
allow_writeable_chroot=YES
local_root=/var/ftp
anon_root=/var/ftp
local_enable=YES
write_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
vsftpd_log_file=/var/log/vsftpd.log
log_ftp_protocol=YES
xferlog_std_format=YES
xferlog_file=/var/log/vsftpd.log
dual_log_enable=YES
async_abor_enable=YES
chroot_local_user=YES
pam_service_name=vsftpd
local_umask=022
dirmessage_enable=YES
userlist_enable=YES
guest_enable=YES
guest_username=virtftp
user_sub_token=$USER
chroot_local_user=YES
ssl_enable=NO
allow_anon_ssl=YES
allow_writeable_chroot=YES
force_anon_data_ssl=YES
force_anon_logins_ssl=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_tlsv1_1=yes
ssl_tlsv1_2=YES
ssl_sslv2=YES
ssl_sslv3=YES
ssl_request_cert=NO
require_ssl_reuse=NO
rsa_cert_file=/etc/vsftpd/cert/vsftpd.pem
rsa_private_key_file=/etc/vsftpd/cert/vsftpd.pem
ssl_ciphers=HIGH
debug_ssl=YES

/etc/pam.d/vsftpd
#%PAM-1.0
session    optional     pam_keyinit.so    force revoke
auth       required	pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required	pam_shells.so
auth       include	password-auth
account    include	password-auth
session    required     pam_loginuid.so
session    include	password-auth
auth         required      pam_userdb.so db=/etc/vsftpd/db/login.db
account      required      pam_userdb.so db=/etc/vsftpd/db/login.db

How to fix the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question