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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel DNSonly update removes FTP Account?

Discussion in 'General Discussion' started by Steini Petur, Oct 9, 2017.

Tags:
  1. Steini Petur

    Steini Petur Member

    Joined:
    Apr 24, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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?
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    334
    Likes Received:
    95
    Trophy Points:
    28
    Location:
    Spain
    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 ?
     
  3. Steini Petur

    Steini Petur Member

    Joined:
    Apr 24, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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.
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    334
    Likes Received:
    95
    Trophy Points:
    28
    Location:
    Spain
    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?
     
    #4 rpvw, Oct 9, 2017
    Last edited: Oct 9, 2017
  5. Steini Petur

    Steini Petur Member

    Joined:
    Apr 24, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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 :)
     
  6. Steini Petur

    Steini Petur Member

    Joined:
    Apr 24, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  8. Steini Petur

    Steini Petur Member

    Joined:
    Apr 24, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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..
     
Loading...

Share This Page