Vsftpd is not working properly












-2














OS:CentOS 7.6 64bit



problem



The FTP service is not working properly. Repeatedly log in when connecting. Unable to authenticate user.



Information is provided below. If you know how to solve this problem, please help me, thank you.



enter image description here



Configuration code:



sudo useradd ftpuser -d /product/ftpfile -s /sbin/nologin

sudo chown -R ftpuser.ftpuser ./ftpfile/
sudo passwd ftpuser
cd /etc/vsftpd
sudo vim chroot_list
sudo vim /etc/selinux/config
sudo setsebool -P ftp_home_dir 1
sudo systemctl start vsftpd.service


error info



Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): check pass; user unknown
Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=anonymous rhost=42.48.210.139



status



vsftpd.conf



local_root=/product/ftpfile 

anon_root=/product/ftpfile
use_localtime=YES

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

xferlog_std_format=YES

ftpd_banner=Welcome to mmall FTP Server

chroot_local_user=NO

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/chroot_list

listen=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

pasv_min_port=61001
pasv_max_port=62000









share|improve this question







New contributor




Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    -2














    OS:CentOS 7.6 64bit



    problem



    The FTP service is not working properly. Repeatedly log in when connecting. Unable to authenticate user.



    Information is provided below. If you know how to solve this problem, please help me, thank you.



    enter image description here



    Configuration code:



    sudo useradd ftpuser -d /product/ftpfile -s /sbin/nologin

    sudo chown -R ftpuser.ftpuser ./ftpfile/
    sudo passwd ftpuser
    cd /etc/vsftpd
    sudo vim chroot_list
    sudo vim /etc/selinux/config
    sudo setsebool -P ftp_home_dir 1
    sudo systemctl start vsftpd.service


    error info



    Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): check pass; user unknown
    Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=anonymous rhost=42.48.210.139



    status



    vsftpd.conf



    local_root=/product/ftpfile 

    anon_root=/product/ftpfile
    use_localtime=YES

    anonymous_enable=NO

    local_enable=YES

    write_enable=YES

    local_umask=022

    dirmessage_enable=YES

    xferlog_enable=YES

    connect_from_port_20=YES

    xferlog_std_format=YES

    ftpd_banner=Welcome to mmall FTP Server

    chroot_local_user=NO

    chroot_list_enable=YES

    chroot_list_file=/etc/vsftpd/chroot_list

    listen=YES

    pam_service_name=vsftpd
    userlist_enable=YES
    tcp_wrappers=YES

    pasv_min_port=61001
    pasv_max_port=62000









    share|improve this question







    New contributor




    Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      -2












      -2








      -2


      1





      OS:CentOS 7.6 64bit



      problem



      The FTP service is not working properly. Repeatedly log in when connecting. Unable to authenticate user.



      Information is provided below. If you know how to solve this problem, please help me, thank you.



      enter image description here



      Configuration code:



      sudo useradd ftpuser -d /product/ftpfile -s /sbin/nologin

      sudo chown -R ftpuser.ftpuser ./ftpfile/
      sudo passwd ftpuser
      cd /etc/vsftpd
      sudo vim chroot_list
      sudo vim /etc/selinux/config
      sudo setsebool -P ftp_home_dir 1
      sudo systemctl start vsftpd.service


      error info



      Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): check pass; user unknown
      Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=anonymous rhost=42.48.210.139



      status



      vsftpd.conf



      local_root=/product/ftpfile 

      anon_root=/product/ftpfile
      use_localtime=YES

      anonymous_enable=NO

      local_enable=YES

      write_enable=YES

      local_umask=022

      dirmessage_enable=YES

      xferlog_enable=YES

      connect_from_port_20=YES

      xferlog_std_format=YES

      ftpd_banner=Welcome to mmall FTP Server

      chroot_local_user=NO

      chroot_list_enable=YES

      chroot_list_file=/etc/vsftpd/chroot_list

      listen=YES

      pam_service_name=vsftpd
      userlist_enable=YES
      tcp_wrappers=YES

      pasv_min_port=61001
      pasv_max_port=62000









      share|improve this question







      New contributor




      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      OS:CentOS 7.6 64bit



      problem



      The FTP service is not working properly. Repeatedly log in when connecting. Unable to authenticate user.



      Information is provided below. If you know how to solve this problem, please help me, thank you.



      enter image description here



      Configuration code:



      sudo useradd ftpuser -d /product/ftpfile -s /sbin/nologin

      sudo chown -R ftpuser.ftpuser ./ftpfile/
      sudo passwd ftpuser
      cd /etc/vsftpd
      sudo vim chroot_list
      sudo vim /etc/selinux/config
      sudo setsebool -P ftp_home_dir 1
      sudo systemctl start vsftpd.service


      error info



      Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): check pass; user unknown
      Jan 05 12:24:49 iZwz9fclplrmrf3jr9s6fuZ vsftpd[32313]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=anonymous rhost=42.48.210.139



      status



      vsftpd.conf



      local_root=/product/ftpfile 

      anon_root=/product/ftpfile
      use_localtime=YES

      anonymous_enable=NO

      local_enable=YES

      write_enable=YES

      local_umask=022

      dirmessage_enable=YES

      xferlog_enable=YES

      connect_from_port_20=YES

      xferlog_std_format=YES

      ftpd_banner=Welcome to mmall FTP Server

      chroot_local_user=NO

      chroot_list_enable=YES

      chroot_list_file=/etc/vsftpd/chroot_list

      listen=YES

      pam_service_name=vsftpd
      userlist_enable=YES
      tcp_wrappers=YES

      pasv_min_port=61001
      pasv_max_port=62000






      linux centos ftp centos-7 vsftpd






      share|improve this question







      New contributor




      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      Thomas LeeThomas Lee

      991




      991




      New contributor




      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Thomas Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          1














          From your config:



          anonymous_enable=NO


          From the error message:



          authentication failure; ... ruser=anonymous ...


          To summarize: you try to login as anonymous user but access for anonymous is explicitly disabled. No wonder it fails.






          share|improve this answer





















          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
            – Thomas Lee
            2 days ago










          • @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
            – Steffen Ullrich
            2 days ago










          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
            – Thomas Lee
            2 days ago










          • @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
            – Steffen Ullrich
            2 days ago













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Thomas Lee is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390825%2fvsftpd-is-not-working-properly%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          From your config:



          anonymous_enable=NO


          From the error message:



          authentication failure; ... ruser=anonymous ...


          To summarize: you try to login as anonymous user but access for anonymous is explicitly disabled. No wonder it fails.






          share|improve this answer





















          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
            – Thomas Lee
            2 days ago










          • @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
            – Steffen Ullrich
            2 days ago










          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
            – Thomas Lee
            2 days ago










          • @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
            – Steffen Ullrich
            2 days ago


















          1














          From your config:



          anonymous_enable=NO


          From the error message:



          authentication failure; ... ruser=anonymous ...


          To summarize: you try to login as anonymous user but access for anonymous is explicitly disabled. No wonder it fails.






          share|improve this answer





















          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
            – Thomas Lee
            2 days ago










          • @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
            – Steffen Ullrich
            2 days ago










          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
            – Thomas Lee
            2 days ago










          • @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
            – Steffen Ullrich
            2 days ago
















          1












          1








          1






          From your config:



          anonymous_enable=NO


          From the error message:



          authentication failure; ... ruser=anonymous ...


          To summarize: you try to login as anonymous user but access for anonymous is explicitly disabled. No wonder it fails.






          share|improve this answer












          From your config:



          anonymous_enable=NO


          From the error message:



          authentication failure; ... ruser=anonymous ...


          To summarize: you try to login as anonymous user but access for anonymous is explicitly disabled. No wonder it fails.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          Steffen UllrichSteffen Ullrich

          3,048614




          3,048614












          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
            – Thomas Lee
            2 days ago










          • @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
            – Steffen Ullrich
            2 days ago










          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
            – Thomas Lee
            2 days ago










          • @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
            – Steffen Ullrich
            2 days ago




















          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
            – Thomas Lee
            2 days ago










          • @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
            – Steffen Ullrich
            2 days ago










          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
            – Thomas Lee
            2 days ago










          • @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
            – Steffen Ullrich
            2 days ago


















          I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
          – Thomas Lee
          2 days ago




          I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.
          – Thomas Lee
          2 days ago












          @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
          – Steffen Ullrich
          2 days ago




          @ThomasLee: Make sure that the server was restarted so that the option takes effect. If it still not works please provide new log files.
          – Steffen Ullrich
          2 days ago












          I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
          – Thomas Lee
          2 days ago




          I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)
          – Thomas Lee
          2 days ago












          @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
          – Steffen Ullrich
          2 days ago






          @ThomasLee: in this case the new problem was a different one: the login now worked after enabling anonymous access but firewall settings blocked transfer of data and directory listings.
          – Steffen Ullrich
          2 days ago












          Thomas Lee is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Thomas Lee is a new contributor. Be nice, and check out our Code of Conduct.













          Thomas Lee is a new contributor. Be nice, and check out our Code of Conduct.












          Thomas Lee is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1390825%2fvsftpd-is-not-working-properly%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀