linux-ubuntu下用ftp遇到的各种问题总结和解决

本文章收集了各种问题,再次感谢资料的提供者。

1.用root帐号登陆后,在/etc 目录下
输入:chkconfig --level 35 vsftpd on
再输入 service vsftpd start
系统提示vsftpd 服务不支持 chkconfig

 
故障原因是没有激活vsftpd,并设置其运行级别。

解决方法:

用root帐号登陆后,在/etc 目录下
输入:chkconfig --level 35 vsftpd on
再输入 service vsftpd start
 
2.

ftp> open 192.168.1.98
ftp: connect: Connection refused

 

 

解决办法:

[root@rac1 etc]# vsftpd /etc/vsftpd/vsftpd.conf &
[1] 9555
[root@rac1 etc]#

 

再次FTP时问题已经解决

 

如果有下面的问题,说明ftp服务没有装,可以重装后再试:

[root@localhost apps]# vsftpd /etc/vsftpd/vsftpd.conf &
[1] 3526
[root@localhost apps]# -bash: vsftpd: command not found

[1]+  Exit 127                vsftpd /etc/vsftpd/vsftpd.conf

[root@localhost soft]# rpm -ivh vsftpd-2.0.5-16.el5_5.1.x86_64.rpm
warning: vsftpd-2.0.5-16.el5_5.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:vsftpd                 ########################################### [100%]
[root@localhost soft]#

[root@localhost apps]# rpm -qa|grep ftp
lftp-3.7.11-4.el5_5.3
vsftpd-2.0.5-16.el5_5.1
tftp-server-0.49-2
ftp-0.17-35.el5

 

如果还报下面的错:

530 Permission denied.
Login failed

 

说明root权限被禁,可以参考下面的文章:

 

3.问题如下:

[root@localhost apps]# ftp 10.xxx.xxx.xxx
Connected to 10.xxx.xxx.xxx
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 (10.xxx.xxx.xxx:root): root
530 Permission denied.
Login failed.
ftp>

root被禁用,可以修改下面两个地方

[root@localhost media]# vi /etc/vsftpd/ftpusers

# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
~
~
~
~
~
~
~
"/etc/vsftpd/ftpusers" 15L, 126C written
[root@localhost media]# vi /etc/vsftpd/user_list

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
~
~
"/etc/vsftpd/user_list" 20L, 362C written
[root@localhost media]#

然后重启ftp:


#/sbin/service vsftpd restart

 

你可能感兴趣的:(linux-ubuntu下用ftp遇到的各种问题总结和解决)