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.

CentOS7 Unable to change FTP port

Discussion in 'Security' started by matt1206, Aug 12, 2015.

  1. matt1206

    matt1206 Member

    Joined:
    Dec 20, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've trying to set my own FTP port, and changing the value in /etc/pure-ftpd.conf doesn't survive a service restart.

    Code:
    Bind {myport}
    I've changed it many times on CentOS6, but it's not changing on my CentOS7 server.

    Code:
    root@cpanel [/etc]# netstat -nltp | grep ":21"
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      15342/pure-ftpd (SE
    tcp6       0      0 :::21                   :::*                    LISTEN      15342/pure-ftpd (SE
    root@cpanel [/etc]# 
    Is there a default config which is being applied at service restart?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can edit the following file to ensure the changes you make are permanent:

    /var/cpanel/conf/pureftpd/main

    Run the following command after making the changes:

    Code:
    /usr/local/cpanel/scripts/setupftpserverpure-ftpd --force
    Thank you.
     
    matt1206 likes this.
  3. matt1206

    matt1206 Member

    Joined:
    Dec 20, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Michael :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. matt1206

    matt1206 Member

    Joined:
    Dec 20, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes it did thank you
    Code:
    root@cpanel [~]# netstat -nltp | grep 8990
    tcp        0      0 0.0.0.0:8990            0.0.0.0:*               LISTEN      22499/pure-ftpd (SE
    tcp6       0      0 :::8990                 :::*                    LISTEN      22499/pure-ftpd (SE
    root@cpanel [~]#
     
Loading...

Share This Page