Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    Default disabling ftp access for an account without disabling account

    (disclaimer - While I'm a fairly experienced sys admin, I'm a relative newbie to pureftp and cpanel/whm. Be gentle )

    I'm setting up a series of accounts through whm, which will need to have cpanel access (no file manager - easy enough to disable), and no ftp access (we are running our own content manager on the server for these users).

    We're using pure-ftpd as the ftp server... how does one disable ftp access without deleting the account, or disabling access to cpanel?
    Last edited by periwinkle; 06-08-2006 at 03:18 PM.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    Default

    Anyone?

    It looks like pure-ftp runs using pure-auth, using a script called pureauth.

    I looked at the script - and it seems to point to a file a called /etc/ftpusers as being a place where you can add usernames that won't be allowed to login.

    However, even after creating this file, adding the user name to that file, and restarting the ftp server, this is not being obeyed... anyone?

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    Default

    After emailing with support, the inability to disable ftp access to accounts apparently was caused by a (literally) one character bug in the pureauth script - see:

    http://bugzilla.cpanel.net/show_bug.cgi?id=286

  4. #4
    Member Leandro's Avatar
    Join Date
    Sep 2003
    Posts
    48

    Default

    If you are using pure-ftp add the username into the /etc/ftpusers doesnt work...

    To disable the access via FTP for an user remove the file /etc/proftpd/<user> (first backup it obviusly) works for me, using pure-ftp

    Cheers!

  5. #5
    Member nettigritty's Avatar
    Join Date
    Jan 2004
    Location
    Bangalore, India
    Posts
    196

    Default

    block external access to port 21 with your firewall.

  6. #6
    Member Leandro's Avatar
    Join Date
    Sep 2003
    Posts
    48

    Default

    But if you block the 21 port , no one can connect the FTP server, and theard is for a specific user.

    Cheers!

  7. #7
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    96

    Default

    thanks! worked like a charm

Similar Threads & Tags
Similar threads

  1. Disabling FTP Access
    By Simonson in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-20-2010, 02:19 PM
  2. disabling awstats for 1 account only
    By bou3lam in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-18-2010, 09:01 AM
  3. Disabling root access via Ftp??
    By damainman in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 07-25-2005, 09:42 AM
  4. Disabling email completely for an account/domain?
    By movielad in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-04-2004, 03:46 AM
  5. Disabling Anonymous FTP access server wide
    By Domenico in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 12-01-2001, 05:58 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube