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.

Virtual FTP account outside of public_html

Discussion in 'General Discussion' started by jetnet, Jul 27, 2006.

  1. jetnet

    jetnet Active Member

    Joined:
    Jun 30, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I really need to create two FTP accounts outside of the public_html folder, as the information they are transfering needs to stay private. Is there a way in pureftpd and cpanel to make that happen? What I thought about doing was createing the two users, and then find where cpanel stored that information, and just manually edit it, but I am unable to find where cpanel is storeing that information.

    Any help would be appreciated.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can't.

    Why can't you pass protect the directories?
     
  3. jetnet

    jetnet Active Member

    Joined:
    Jun 30, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Why??? Common sense? You dont put something on the internet, password protected or not, that you want to keep secure.

    Besides, as root, I should be able to edit a file somewhere to change these accounts.
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,382
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I really thought this used to be a feature in CPanel. But you are right, this would be a handy feature, and password protected the directory is one solution, like you said though, its really just putting something out there that just doesn't need to be there.

    It looks like the directory information for FTP accounts is stored in:

    /etc/vftp/%username%

    where %username% is the main username of the account that you are adding the FTP account to.

    You should be able to create an FTP account through the FTP account manager, and point it to a dummy folder in your public_html, then edit that file and change that specific FTP account to point to a directory outside of your public_html. You will still need to FTP in as ftpuser@domain.com, but you should then go to the directory you pointed it to. That directory will need to be created and owned by the main username.

    I also won't guarentee that CPanel updates or something else might overwrite this file and "fix" the FTP user, but atleast it gives you something to work with.

    Hope this helps.
     
  5. jetnet

    jetnet Active Member

    Joined:
    Jun 30, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    That is EXACTLY what I needed to find... Thanks, and it works like a charm, and if it changes, Ill just change it back.

    Thanks again for the tip
     
  6. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    This is only possible in the later NIGHTLY builds.


    Should be in EDGE soon.
     
Loading...

Share This Page