文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 专题 求职 读书
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» Linux & Advanced Application » vsftpd不能登录问题?       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: vsftpd不能登录问题?  ( 查看:587  回复:10 )   
 
yfxfl
新新人类  点击可查看详细



帖子 49
精华 0
无忧币 21
积分 118
阅读权限 20
注册日期 2007-5-29
最后登录 2008-8-17 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-7-28 16:01   标题:vsftpd不能登录问题?
上一帖 |
请问我在centos下面安装了vsftpd服务器 并且配置了/etc/vsftpd.conf文件里面相应的配置,可是我用ftp进行远程登录 竟然服务链接 好像21端口都打不开  我想知道 还需要配置什么吗?



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-28 16:011楼
[ 顶部 ]
 
vananse
助理工程师  点击可查看详细


帖子 440
精华 3
无忧币 26904
积分 2744
阅读权限 40
注册日期 2006-9-25
最后登录 2008-10-9 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-7-29 23:11 
是不是你的iptables的问题啊
执行这个命令试验试验,iptables -F
如果不行的话就重新启动一下服务
如果还是不行,就说明你的配置有问题啦,把你的配置文件贴出来吧,我帮你看看



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-29 23:112楼
[ 顶部 ]
 
caoleni123
技术员  点击可查看详细



帖子 313
精华 0
无忧币 18
积分 309
阅读权限 30
注册日期 2007-4-1
最后登录 2008-4-24 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-7-30 09:56 
你可以先匿名进行本地登陆,打ftp localhost 试一下 如果没有问题就重新启动一下服务 输入/etc/rc.d/init.d/vsftp start



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-30 09:563楼
[ 顶部 ]
 
yfxfl
新新人类  点击可查看详细



帖子 49
精华 0
无忧币 21
积分 118
阅读权限 20
注册日期 2007-5-29
最后登录 2008-8-17 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-7-30 10:41   标题:我关闭了iptables了 进行本地登录有如下错误 远程登录还是没有反应

[root@centos ~]# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.5)
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): yifei
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/yifei
Login failed.
421 Service not available, remote server has closed connection



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-30 10:414楼
[ 顶部 ]
 
yfxfl
新新人类  点击可查看详细



帖子 49
精华 0
无忧币 21
积分 118
阅读权限 20
注册日期 2007-5-29
最后登录 2008-8-17 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-7-30 10:43   标题:这是我我的vsftpd.conf文件内容

[root@centos ~]# more /etc/vsftpd/vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-30 10:435楼
[ 顶部 ]
 
cokemouse
新新人类  点击可查看详细



帖子 113
精华 0
无忧币 829
积分 191
阅读权限 20
来自 (保密)
注册日期 2007-7-23
最后登录 2008-5-6 离线

[查看资料]  [发短消息]  [Blog
  QQ       
发表于:2007-7-31 02:32 
你 查看一下“服务”,
应该是服务除了 问题



【专家门诊】Linux网络管理实战解疑
2007-7-31 02:326楼
[ 顶部 ]
 
alvin551018
新新人类  点击可查看详细



十二生肖之狗   天秤座   行业勋章   技术勋章   诚信兄弟  
帖子 98
精华 0
无忧币 1114
积分 115
阅读权限 20
来自 (保密)
注册日期 2007-4-7
最后登录 2008-10-6 离线

[查看资料]  [发短消息]  [Blog
[个人主页]    QQ       
发表于:2007-7-31 07:00 
应该是需要修改端口吧,



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-31 07:007楼
[ 顶部 ]
 
sery
技术专家  点击可查看详细



论坛万户侯   十二生肖之鼠   处女座   行业勋章   技术勋章   诚信兄弟  
帖子 174
精华 0
无忧币 6541
积分 192
阅读权限 120
来自 (保密)
注册日期 2006-3-29
最后登录 2008-8-31 离线

[查看资料]  [发短消息]  [Blog
[个人主页]         
发表于:2007-7-31 21:11 
没有添加用户或用户的目录权限设置不正确



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-7-31 21:118楼
[ 顶部 ]
 
wls_6000
新新人类  点击可查看详细



帖子 20
精华 0
无忧币 16
积分 18
阅读权限 20
注册日期 2007-1-7
最后登录 2008-9-25 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-8-1 14:46 
默认情况下 ftp安装好就能用 楼主该不会是用虚拟机做的吧/



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2007-8-1 14:469楼
[ 顶部 ]
 
flaresun
新新人类  点击可查看详细



十二生肖之猴   行业勋章   技术勋章   诚信兄弟  
帖子 1
精华 0
无忧币 0
积分 11
阅读权限 20
注册日期 2007-1-5
最后登录 2008-8-12 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-8-8 17:47 
是由于SELINUX导致的问题

方法一
运行system-config-securitylevel,关闭SELinux。
# system-config-securitylevel
在界面中SELinux区域,选择Disabled。在选择Customize按钮,开机Firewall对FTP的支持。
方法二
//查看当前的状态
# getsebool ftpd_disable_trans
ftpd_disable_trans --> off
//使用setsebool命令开启
# setsebool ftpd_disable_trans 1
//查看当前状态是否是on的状态
# getsebool ftpd_disable_trans
ftpd_disable_trans --> on
//setsebool使用-P参数,无需每次开机都输入这个命令
# setsebool -P ftpd_disable_trans 1
# service vsftpd restart




论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2008-8-8 17:4710楼
[ 顶部 ]
 
00306
新新人类  点击可查看详细



十二生肖之牛   行业勋章   技术勋章  
帖子 31
精华 0
无忧币 25
积分 24
阅读权限 20
注册日期 2008-4-20
最后登录 2008-9-23 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-8-9 10:48 
这种情况一般都是用户与权限不正确造成的



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2008-8-9 10:4811楼
[ 顶部 ]
     
论坛跳转:  

| | |

| | |

| | |

标记已读 · 删除论坛Cookies · 文本版 · WAP
 
| 诚征版主 | 版主堂 | 意见建议 | 大史记 | 论坛地图
Copyright©2005-2008 51CTO.COM  Powered by Discuz!
本论坛言论纯属发布者个人意见,不代表51CTO网站立场!如有疑义,请与管理员联系。
京ICP备05051492号