vsftp服务器root账户不能用于ftp登录的解决方法
2015-08-16 11:47
776 查看
默认情况下vsftp是不允许root用户登录的,可以通过修改限制来解决这个问题。
首先找到vsftp的配置目录
[root@localhost vsftpd]# pwd
/etc/vsftpd
[root@localhost vsftpd]# ls
chroot_list ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh
[root@localhost vsftpd]#
修改
[root@localhost vsftpd]# cat ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
修改
[root@localhost vsftpd]# cat 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
上面这个两个就是默认情况下vsftp不允许使用的账号列表,讲文件中root删除,或者前面加个#号 重启一下vsftpd 服务 即可
首先找到vsftp的配置目录
[root@localhost vsftpd]# pwd
/etc/vsftpd
[root@localhost vsftpd]# ls
chroot_list ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh
[root@localhost vsftpd]#
修改
[root@localhost vsftpd]# cat ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
修改
[root@localhost vsftpd]# cat 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
上面这个两个就是默认情况下vsftp不允许使用的账号列表,讲文件中root删除,或者前面加个#号 重启一下vsftpd 服务 即可
相关文章推荐
- php 生产验证码
- TP实现首页静态方法
- 【细说PHP学习】第十三章 PHP的错误和异常处理
- yii webservice 提示:Procedure 'getSent' not present 错误的解决方法
- yii webservice 提示:Procedure 'getSent' not present 错误的解决方法
- ContentProvider类的设计分析
- mac os下部署laravel项目笔记
- php友好格式化时间
- PHP学习笔记-非常有用的 PHP 代码片段(1)
- JS/PHP 浮点数精确运算
- phpcms学习总结-图片上传不成功
- Zend Studio快捷键汇总
- php des 加密解密实例
- php函数设置时区方法:
- PHP 实现获取服务器端IP地址
- 如何安装PHP扩展libzookeeper
- 如何让PHP脚本在cli模式下执行时可接受选项和值的输入
- PHP:文件系统
- php中UNIX时间戳转换为日期
- IIS 7上部署PHP