cPanel DNSonly update removes FTP Account?

Steini Petur

Well-Known Member
Apr 24, 2016
105
26
78
Iceland
cPanel Access Level
Root Administrator
I have cPanel DNS installed on our machine and I "yum install pure-ftpd" regularly because cPanel must be deleting it, when I come back few weeks later its just gone leaving pure-ftpd.conf.rpmsave. It keeps erasing it. Am I not allowed to have anything but cPanel DNS on the server?
 

rpvw

Well-Known Member
Jul 18, 2013
1,100
472
113
UK
cPanel Access Level
Root Administrator
You shouldn't have to yum Pure-FTPD into your system. Go to Home >> Service Configuration >> FTP Server Selection and select the Pure-FTPD radio button - you should then be using Pure as your FTP daemon.

Please see FTP Server Selection - Version 66 Documentation - cPanel Documentation for full details

I am not sure as to what your references to DNS have to do with the FTP daemon selection - perhaps you could elaborate ?
 

Steini Petur

Well-Known Member
Apr 24, 2016
105
26
78
Iceland
cPanel Access Level
Root Administrator
Certainly, this server doesn't have cPanel so your suggestion does not work. What is installed is called cPanel DNS Only. It is the lighter version of cPanel with sole purpose of supporting a DNS server. Everything else is stripped out of it except for DNS and some reseller account creation. That is why it's free and we use it for the DNS server, but we're also hosting our company site on it, using nginx, php-fpm, mysql everything else is left be, it's only pure-ftpd that keeps disappearing on me.

PS: I should have been more clear in my title with "DNS" and do "DNS Only", sorry for that.
 

rpvw

Well-Known Member
Jul 18, 2013
1,100
472
113
UK
cPanel Access Level
Root Administrator
OK....now I understand what you problem is :-D

I would think that the cPanel planners would not have thought that anyone would have wanted an FTP daemon on a DNS server - which is probably why it keeps getting removed !

Out of curiosity, what is your motivation for wanting a public facing FTP daemon on a DNS server anyway ? I would have thought that SCP, or the fish protocols, would have been both adequate and much more secure.

***EDIT***

I did search for this as I was curious, and I found several threads on these forums, the most recent seems to be from July 2016 and may give you some hints:

DNS Only server for backups?
 
Last edited:

Steini Petur

Well-Known Member
Apr 24, 2016
105
26
78
Iceland
cPanel Access Level
Root Administrator
The only reason for the FTP server is because this server does not act as only DNS server. It has Nginx and PHP-FPM installed, the machine is a big one, it's not a small only DNS server it's a big machine serving other purposes. The FTP is mainly so that the staff can access the files for certain website to update. I don't give the root key out to these people, it's locked by 2FA for obvious purposes. So they have FTP access to the files so SCP is not a possibility for them, I don't make jailed for them either, they simply use FTP Using Explicit TLS to login to the area to edit the physical files should they need to.

That is the reason :)
 

Steini Petur

Well-Known Member
Apr 24, 2016
105
26
78
Iceland
cPanel Access Level
Root Administrator
Hello,

I did review these tickets which is Why I have never understood why it keeps getting removed, This doesn't happen just randomly by itself. It has to be something in the cPanel env that is telling the server to uninstall the pure-ftpd. I know I can probably stop it by just disabling yum, but that would also stop any updates ever.. I know it's being removed using yum because it leaves "pure-ftpd.conf.rpmsave" which means it ran through the uninstall procedure. This lasts for few days then it just evaporates and I have to install it again and only on this server which is the only cPanel DNS Only we have.

Why didn't we just pay cPanel license for the whole thing? It would be beause we didn't want the server bloated. Just manual nginx, php, myql installation and only cPanel DNS, we didn't need anything more for this server.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You can update the FTP RPM target setting to "unmanaged" with the following commands:

Code:
/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.pure-ftpd unmanaged
/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.proftpd unmanaged
This will prevent cPanel from uninstalling the FTP RPMs on your system as part of the RPM check script:

How to Set or Unset RPM Management - cPanel Knowledge Base - cPanel Documentation

Thank you.
 

Steini Petur

Well-Known Member
Apr 24, 2016
105
26
78
Iceland
cPanel Access Level
Root Administrator
Hello Michael,

This really should be in some sort of DNS Only cPanel Documentation because this has been driving me up a wall with no solutions online as to what causes this. People are just "That shouldn't happen" and now you show me why my FTP keeps being deleted. Because some cron script runs and checks for FTP and sees there is an FTP here, lets delete it.

Why would the RPM check script delete the FTP by default, since it's not installed by cPanel DNS Only, why would you have it delete the FTP..
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Why would the RPM check script delete the FTP by default, since it's not installed by cPanel DNS Only, why would you have it delete the FTP..
cPanel DNS-Only is designed as a "bare-bones" version of cPanel & WHM, with the only purpose being to replicate DNS zones from your other servers. Would you prefer to see a warning message about the management of RPMs for services such as a FTP on the cPanel DNSONLY installation guide, or elsewhere within our documentation?

Thank you.