1.yum 2.cat /etc/vsftpd/vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES listen=YES chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES #guest_enable=YES #guest_username=ftp #user_config_dir=/etc/vsftpd/vuser_conf 3.cat /etc/vsftpd/chroot_list xx 4.useradd xx -d /opt/ftp -s /sbin/nologin echo "密码"|passwd --stdin xx 5.chown -R xx.xx /opt/ftp
时间: 2024-10-08 19:39:48