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.

Removing public_ftp?

Discussion in 'General Discussion' started by Jeff75, Aug 7, 2003.

Thread Status:
Not open for further replies.
  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    For some reason public_ftp keeps being added whenever a create a new account. I am not going to offer anonymous FTP and I do not want this directory to be added to their account.

    I tried disabling public_ftp in the latest 7.x STABLE version of WHM for FreeBSD and it keeps showing enabled. Can somebody tell me what I need to do to keep this directory from being created? I looked in /root/cpanel3-skel but it wasn't in there.

    cPanel.net Support Ticket Number:
     
  2. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Anybody?

    cPanel.net Support Ticket Number:
     
  3. trakwebster

    trakwebster Well-Known Member

    Joined:
    Jan 29, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Do you need to offer ftp to *anyone*, or are you limiting file transfers to scp and ssh?

    If you're offerring no ftp, then you can disable the ftp server. However, cpanel has a daemon called something like chkservd whose purpose in life is to make sure that apache, bind, ftp, and similar things are running. This rascal chkservd will start up ftp even after you've killed it. Alternately, if you *really* kill ftp then chkservd will send you an email every five minutes to complain.

    However, the process of HOWTO successfully deactivate ftp is documented if you want to take this route. Info is here: . http://forums.cpanel.net/showthread.php?s=&threadid=11551
     
    #3 trakwebster, Aug 9, 2003
    Last edited: Aug 9, 2003
  4. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I'm offering FTP to everyone, however I'm not going to offer anonymous FTP to anybody. For some reason the public_ftp directory is created everytime I create an account so I have to go in and delete it everytime which is taking a lot of extra time.

    cPanel.net Support Ticket Number:
     
  5. MySundown

    MySundown Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    Delete the directory from your cpanel skeleton directory (/root/cpanel3-skel on my server). It shouldn't be created on new accounts.

    However, the users could always manually create a public_ftp directory in their home directory.

    But, it's a precaution at least.

    You can do locate public_ftp every so often to see if any of your clients have created it.

    cPanel.net Support Ticket Number:
     
  6. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    The strange thing is, is that there is no directory in /root/cpanel3-skel/ named public_ftp. I cannot figure out where this directory is being created from in the new account set up process. I keep trying to disable Anonymous FTP under Tweak FTP settings, but it keeps showing "enabled".

    I tried running locate public_ftp but nothing came up. There's over a hundred of these directories in each client's home directory. Does anybody know how I can delete them all from each user's directory without having to manually delete each one?

    cPanel.net Support Ticket Number:
     
  7. Matt-AWD

    Matt-AWD Member

    Joined:
    Jun 17, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Are you giving each user their own IP? If not, anonymous FTP won't work on their account anyway.

    cPanel.net Support Ticket Number:
     
  8. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Yes, each user is assigned their own IP address.

    cPanel.net Support Ticket Number:
     
  9. MySundown

    MySundown Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    Not true. It used to be like that, but now users with shared ips can have anonymous ftp too. Try going to ftp://ftp.mysundown.net/ . It's ip (216.67.237.152) has 100+ other accounts on it.

    cPanel.net Support Ticket Number:
     
  10. neorder

    neorder Well-Known Member

    Joined:
    Jun 16, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    so anonymous FTP without IP address, true or not??
     
  11. tmunk

    tmunk Member

    Joined:
    Apr 4, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Arizona
    I am having this exact same problem. I try to disable anonymous ftp in the WHM Main >> Service Configuration >> FTP Configuration screen and I get this error, and anonymous ftp is still enabled:
    ################################################
    Disabling Anonymous Ftp [an error occurred while processing this directive]
    Complete!! Updating ftp passwords for all users Ftp password files updated. Ftp vhost passwords synced
    Attempting to restart ftpserver
    Waiting for ftpserver to restart.... . . . . . . . . . . finished.
    ftpserver status
    root 28537 0.0 0.2 2600 1708 ?? Ss 12:12PM 0:00.04 pure-ftpd (SERVER) (pure-ftpd)
    ftpserver started ok
    ################################################

    has anyone come up with a fix for this? I've tried setting up an /etc/ftpuser file as suggested in another thread, and I have no /etc/pureftpd.conf file to edit as another thread suggested, so I'm at a loss.

    I'm using WHM 10.8.0 cPanel 10.8.1-R113
    FreeBSD 4.9-RELEASE i386 - WHM X v3.1.0

    Help? :eek:
     
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Please do not dig up 3 year old threads like this. If you still need an answer, start a new thread if there isn't a recent one.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page