故障描述:
一台VSFTPD 服务器,一切正常,就是从其他机器上登录,进任何目录都看不到里面的内容,在本地可以,vsftpd.conf内容如下: [zhaohaijun@localhost vsftpd]$ cat vsftpd.conf anon_mkdir_write_enable=NO anon_root=/dev/zero anon_upload_enable=NO anon_world_readable_only=YES anonymous_enable=NO banner_file=/etc/vsftpd/issue chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list chroot_local_user=YES connect_from_port_20=YES data_connection_timeout=120 dirmessage_enable=YES ftpd_banner=Welcome to use mercury FTP server. guest_enable=YES guest_username=mercuryftp hide_file={.*} pam_service_name=vsftpd.mercury idle_session_timeout=600 local_enable=YES local_umask=022 log_ftp_protocol=YES passwd_chroot_enable=NO pasv_enable=YES pasv_min_port=9981 pasv_max_port=10281 listen_ipv6=NO listen_port=7721 listen=YES tcp_wrappers=YES use_localtime=YES user_config_dir=/etc/vsftpd/roles userlist_enable=YES virtual_use_local_privs=YES write_enable=YES xferlog_enable=YES xferlog_std_format=YES 解决办法: 注释掉hide_file={.*}