linux ftp 問題

linux

1个回答

写回答

陈大宝贝

2026-01-01 20:01

+ 关注

etc
etc

1.的配置 anonymous_enable = YES local_enable = NO write_enable = NO anon_upload_enable = NO anon_mkdir_write_enable = NO anon_other_write_enable = NO 2.创建虚拟用户。 创建 loginuser.txt 内容如下: abc xyz 第一行是用户,第二孙入助固病集简超军面行是密码 #db_load -T -t hash -f loginuser.txt /etc/vsftpd_login.db #chmod 600 /etc/vsftpd_login.db 配置PAM. 修改/etc/pam.d/vsftpd: auth required /lib/security/pam_*.so db=/etc/vsftpd_login account required /lib/security/pam_*.so db=/etc/vsftpd_login 然后为虚拟用户创建本地系统用户 useradd -d /home/ftpu virftp mkdir /home/ftpu chown virftp.virftp /home/ftpu 修改/etc/vsftpd.conf anonymous_enable = NO local_enable =YES write_enable = NO anon_upload_enable = NO anon_mkdir_write_enable = NO anon_other_write_enable = no chroot_local_user = YES guest_enable = YES guest_username = virftp listen =YES listen_port = 21 pasv_min_port = 3360问答0000 pasv_max_port = 30999 还有别的一些方法,这应该是最简单的了。

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号