Pure-FTPd servers ForcePassiveIP issue

diWhile1

Member
Oct 11, 2015
16
0
51
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
 

diWhile1

Member
Oct 11, 2015
16
0
51
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
 

Muhammed Fasal

Well-Known Member
Aug 9, 2017
55
12
8
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.
 

diWhile1

Member
Oct 11, 2015
16
0
51
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>
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
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>
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Hello,

The document is now updated to reflect the correct syntax.

Thanks!