Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    28

    Default Virtual FTP account outside of public_html

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You can't.

    Why can't you pass protect the directories?

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    28

    Default

    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. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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. #5
    Member
    Join Date
    Jun 2004
    Posts
    28

    Default

    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. #6
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    This is only possible in the later NIGHTLY builds.


    Should be in EDGE soon.

Similar Threads & Tags
Similar threads

  1. addon in the public_html with an ftp account created as required
    By blackhorse in forum New User Questions
    Replies: 2
    Last Post: 01-06-2009, 03:47 PM
  2. public_html not showing on ftp?!
    By JakeCulpin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-18-2007, 04:43 AM
  3. Create FTP Account - not to /public_html/user
    By justhost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 02:21 PM
  4. ftp accounts access below public_html
    By martino in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-26-2003, 01:49 PM
  5. Virtual Ftp Account Directory Selection
    By jameshsi in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-24-2002, 12:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube