• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    New FTP user

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    407
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Valer
      last edited by

      Hello,

      I would like to create a new FTP user ‘fogbackup’. Lock (jail) on own home directory.

      Install: Debian 9 + FOG Project 1.5.4

      I use:

      useradd fogbackup 
      passwd fogbackup
      usermod -d /home/fogbackup/ fogbackup
      service vsftp restart
      

      Use FTP client (WinSCP from MS Windows) and can’t login: authentication error.
      I read wiki: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP
      And as FOG user i can login successful.

      What am I doing wrong?

      Thanks for help

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Valer said in New FTP user:

        useradd fogbackup

        That command does not create the user’s home directory (it does if you would have added the -m parameter). The following might do the trick:

        mkdir /home/fogbackup/
        chown fogbackup:fogbackup /home/fogbackup/
        

        If not then run tail -f /var/log/auth.log while trying to log in via FTP. This should give us some more information on why it does not allow the user to authenticate.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • V
          Valer
          last edited by

          Solution my problem:

          1. tips of Sebastian Roth:
          mkdir /home/fogbackup/
          chown fogbackup:fogbackup /home/fogbackup/
          
          1. change config file /etc/vsftpd/vsftpd.conf
          vsftpd_log_file=/var/log/vsftpd.log
          log_ftp_protocol=YES
          allow_writeable_chroot=YES
          chroot_local_user=YES
          chroot_list_enable=YES
          chroot_list_file=/etc/vsftpd.chroot_list
          rsa_cert_file=/etc/ssl/private/vsftpd.pem
          rsa_private_key_file=/etc/ssl/private/vsftpd.pem
          ssl_enable=YES
          force_local_data_ssl=NO
          force_local_logins_ssl=NO
          
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          195

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project