Chinaunix

标题: vsftpd:user can login.but fail to open directory [打印本页]

作者: xb_parasite    时间: 2005-11-14 12:12
标题: vsftpd:user can login.but fail to open directory
I use FC4 with default vsftpd installed.
local user and anonymous can login,but fail to open directory.Nor can do any operations(mkdir,upload,download)
#ls -l /var/|grep ftp
drwxrwxrwx   4 beffery beffery 4096 Nov 13 07:38 ftp
#ftp 127.0.0.1
ftp 127.0.0.1
Connected to 127.0.0.1.
220 Welcome to blah FTP service.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:root): beffery
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,233,186)
150 Here comes the directory listing.
226 Transfer done (but failed to open directory).
ftp> mkdir try
550 Create directory operation failed.
ftp>

This is my /etc/vsftpd/vsftpd.conf:
------------------------------------------------
anonymous_enable=YES
local_enable=YES
chroot_local_user=YES
local_root=/var/ftp

write_enable=YES
file_open_mode=0644

local_umask=022

dirmessage_enable=YES

xferlog_enable=NO
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
log_ftp_protocol=YES
syslog_enable=YES
connect_from_port_20=YES

ascii_upload_enable=YES
ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP service.



pam_service_name=vsftpd

userlist_enable=YES
userlist_deny=YES

listen=YES
tcp_wrappers=YES
background=YES
-------------------------------------
作者: wolfg    时间: 2005-11-14 13:56
disable SELinux
作者: xb_parasite    时间: 2005-11-14 18:02
标题: 回复 2楼 wolfg 的帖子
It works.thank you.
作者: wolfg    时间: 2005-11-15 09:38
原帖由 xb_parasite 于 2005-11-14 18:02 发表
It works.thank you.


再看看精华区里几个有关SELinux的帖子,会更有收获




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2