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



























    -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

























      -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














      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













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 5 at 8:42









      Thomas LeeThomas Lee

      991




      991






















          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
            Jan 5 at 10:04











          • @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
            Jan 5 at 10:28











          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

            – Thomas Lee
            Jan 5 at 10:50











          • @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
            Jan 5 at 10:51













          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
          });


          }
          });














          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
            Jan 5 at 10:04











          • @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
            Jan 5 at 10:28











          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

            – Thomas Lee
            Jan 5 at 10:50











          • @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
            Jan 5 at 10:51


















          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
            Jan 5 at 10:04











          • @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
            Jan 5 at 10:28











          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

            – Thomas Lee
            Jan 5 at 10:50











          • @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
            Jan 5 at 10:51
















          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 Jan 5 at 9:17









          Steffen UllrichSteffen Ullrich

          3,093714




          3,093714













          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.

            – Thomas Lee
            Jan 5 at 10:04











          • @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
            Jan 5 at 10:28











          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

            – Thomas Lee
            Jan 5 at 10:50











          • @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
            Jan 5 at 10:51





















          • I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.

            – Thomas Lee
            Jan 5 at 10:04











          • @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
            Jan 5 at 10:28











          • I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

            – Thomas Lee
            Jan 5 at 10:50











          • @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
            Jan 5 at 10:51



















          I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.

          – Thomas Lee
          Jan 5 at 10:04





          I changed the “anonymous_enable” to “yes”, but still prompted the login to fail.

          – Thomas Lee
          Jan 5 at 10:04













          @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
          Jan 5 at 10:28





          @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
          Jan 5 at 10:28













          I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

          – Thomas Lee
          Jan 5 at 10:50





          I opened ports 20 and 61001~62000, added "pasv_enable=YES", and it worked. :)

          – Thomas Lee
          Jan 5 at 10:50













          @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
          Jan 5 at 10:51







          @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
          Jan 5 at 10:51




















          draft saved

          draft discarded




















































          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.




          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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy