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.

How to block FTP access

Discussion in 'General Discussion' started by nesoor, Sep 29, 2015.

  1. nesoor

    nesoor Registered

    Joined:
    Sep 29, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Helmond
    cPanel Access Level:
    Reseller Owner
    Hello cPanel members,

    I hope this is the right section :) I searched on Google but I didn't find a good answer.
    I want to block FTP access for certain cPanel accounts. Is this possible?
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, it's possible per the instructions in the document referenced in the previous post. However, you will need root access to make changes to the /etc/ftpusers file. You can ask your hosting provider to make the change for you if you do not have root access to the system.

    Thank you.
     
  4. nesoor

    nesoor Registered

    Joined:
    Sep 29, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Helmond
    cPanel Access Level:
    Reseller Owner
    Hey jcats and Michael,

    Thanks for your answers, I was exactly searching for this!
    I put the file "ftpusers" in etc/ and added also the username I wanted to block. Unfortunately the user has still access.
    I put the file into the main account and the users account, just to be sure.

    Is the root directory where the following folders are situated: public_html, tmp, mail, logs, etc etc?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    No, the directory in question is only available with "root" access to the system. You can ask your hosting provider to make the change for you, as you don't have access to do so with a shared hosting account.

    Thank you.
     
Loading...

Share This Page