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.

disabling ftp access for an account without disabling account

Discussion in 'General Discussion' started by periwinkle, Jun 8, 2006.

  1. periwinkle

    periwinkle Registered

    Joined:
    Mar 9, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    (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?
     
    #1 periwinkle, Jun 8, 2006
    Last edited: Jun 8, 2006
  2. periwinkle

    periwinkle Registered

    Joined:
    Mar 9, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. periwinkle

    periwinkle Registered

    Joined:
    Mar 9, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  4. Leandro

    Leandro Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentin
    cPanel Access Level:
    DataCenter Provider
    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. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    block external access to port 21 with your firewall.
     
  6. Leandro

    Leandro Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentin
    cPanel Access Level:
    DataCenter Provider
    But if you block the 21 port , no one can connect the FTP server, and theard is for a specific user. :rolleyes:

    Cheers!
     
  7. blargman

    blargman Well-Known Member

    Joined:
    Sep 11, 2007
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    thanks! worked like a charm
     
Loading...

Share This Page