CentOS 8.4 (Redhat)安装 vsftpd 记录,aliyun的虚拟主机。
1. 建立一个ftpadmin账号,管理 /var/ftp 目录的上传等操作。
2. 在 /etc/vsftpd/vsftpd.conf 中添加(或生效)如下行, 只是其中的部分修改的行:
local_enable=YES //Uncomment this to allow local users to log in
write_enable=YES //Uncomment this to enable any form of FTP write command.
anon_root=/var/ftp
local_root=/var/ftp
3.如出现“500 OOPS: vsftpd: refusing to run with writable root inside chroot()” 信息,是因为 vsftpd 升级到2.3.5 之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。在vsftpd.conf 中 添加如下行。
allow_writeable_chroot=YES
参考:【转】vsftp 遇到错误 500 OOPS: vsftpd: refusing to run with writable root inside chroot()--不错
https://www.cnblogs.com/wi100sh/p/4542819.html
浙公网安备 33010602011771号