Linux启动ftp服务器530 Permission denied解决方法

小鱼儿 2022-02-04 05:39 311阅读 0赞

今天又重新在虚拟机下安装了linux。现在我想启动linux自带的ftp服务器:#service vsftpd start 。如果想linux启动是自动启动ftp服务器:#chkconfig vsftpd on 。

运行putty,以root身份进入,出现了报错 530 Permission denied ,感觉很奇怪,因以普通用户是可以进入的。

  1. 原因是我们 /etc/vsftpd/ftpusers /etc/vsftpd/user\_list 禁掉了root这个用户。这时我们需要修改这两个文件。
  2. 1)/etc/vsftpd.user\_list的默认文件(则是表示具体用户)
  3. \# vsftpd userlist
  4. \# If userlist\_deny=NO, only allow users in this file
  5. \# If userlist\_deny=YES (default), never allow users in this file, and
  6. \# do not even prompt for a password.
  7. \# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
  8. \# for users that are denied.
  9. root
  10. bin
  11. daemon
  12. adm
  13. lp
  14. sync
  15. shutdown
  16. halt
  17. mail
  18. news
  19. uucp
  20. operator
  21. games
  22. nobody
  23. 这时我们要在 root 前加上 \#
  24. 2)/etc/vsftpd.ftpusers 的默认文件(所有可以登录该FTP的用户属性)
  25. \# Users that are not allowed to login via ftp
  26. root
  27. bin
  28. daemon
  29. adm
  30. lp
  31. sync
  32. shutdown
  33. halt
  34. mail
  35. news
  36. uucp
  37. operator
  38. games
  39. nobody
  40. 这时我们要在 root 前加上 \#

发表评论

表情:
评论列表 (有 0 条评论,311人围观)

还没有评论,来说两句吧...

相关阅读