linux下ftp连接:530 Permission denied
2016-06-14 00:20
423 查看
问题如下:
[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
[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
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
news
uucp
operator
games
nobody
~
~
~
"/etc/vsftpd/user_list" 20L, 362C written
[root@localhost media]#
然后重启ftp:
#/sbin/service vsftpd restart
相关文章推荐
- linux下搭建属于自己的博客(WordPress安装)
- Linux下Qt开发环境的搭建
- 如何在linux下开启FTP服务
- linux mysql安装
- Linux在x86-64下的虚拟内存布局
- centos上安装python插件以及setuptools ,pip
- Linux系统开机自动启动脚本。自动加载某些脚本或系统服务
- linux 文件内容查找(当前文件夹下)
- 超信Linux版(超信 for Linux下载) v1.3.0官方版
- SSMTP—让Linux系统从Office 365发送邮件
- 15 条实用 Linux/Unix 磁带管理命令
- Linux命令scp
- ubuntu下安装无线网卡Broadcom802.11驱动
- linux中的wget命令
- Linux中安装配置spark集群
- linux下各种工具的配置
- linux GDB调试程序(一)
- Linux下Makefile生成工具automake使用
- linux下libusb使用
- centos 搭建 git 服务端和客户端