Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Pure-FTPd servers ForcePassiveIP issue

Discussion in 'General Discussion' started by diWhile1, Oct 24, 2017.

Tags:
  1. diWhile1

    diWhile1 Member

    Joined:
    Oct 11, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Hello friend

    About a year ago I changed IP addresses on my server (public & local) NAT mode.
    Once in a while I have to edit the '/etc/pure-ftpd.conf' and change the 'ForcePassiveIP' value from the old ip to the realy current ip.
    Why the file rewrites itself and from where the wrong IP address was taken? (that ip previously used by the server)

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. diWhile1

    diWhile1 Member

    Joined:
    Oct 11, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Thanks!
    Another question in the same context
    What is the difference between these files and where should I set up settings?
    (Please short explanation to better understand the system)
    /var/cpanel/conf/pureftpd/local
    /var/cpanel/conf/pureftpd/main
    /etc/pure-ftpd.conf
     
  4. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    I'll give you an explanation about this:

    The pureFTP template is located in /var/cpanel/conf/pureftpd/main, and is set up YAML style similar to most of cPanel’s internal configuration files. The settings in the template correlate directly to the same options in /etc/pure-ftpd.conf, but it’s better to edit the template since cPanel tends to prefer template-based configuration to regenerate (overwrite) config files.

    You can change an option in the FTP configuration file and run /scripts/ftpup --force, and the template will add the changed values to the template as long as they don’t already exist. If they do, the template will change the specified option in pure-ftpd.conf to match its own value.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. diWhile1

    diWhile1 Member

    Joined:
    Oct 11, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Thanks Muhammed, Your information is useful to me.

    Just want to update the cPanel team about wrong syntax in documentation (or outdated) on FTP FAQ - Documentation
    /scripts/setupftpserver pure-ftpd -—force (wrong - return `help`)
    /scripts/setupftpserver -—force pure-ftpd (correct)
    setupftpserver [options] <ftpserver>
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know which browser, OS, and SSH client you are using? The correct command is:

    Code:
     /scripts/setupftpserver pure-ftpd --force
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. diWhile1

    diWhile1 Member

    Joined:
    Oct 11, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    I'm sure that's what it was. I checked again now and everything is fine.
    Thank you
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @diWhile1,

    I've opened internal case DOC-9815 with our Documentation Team to ensure the FTP FAQ document is updated to use two hyphens (--) instead of a hyphen and an em dash (-—) for the update commands.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The document is now updated to reflect the correct syntax.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice