Virtual FTP account outside of public_html

jetnet

Active Member
Jun 30, 2004
28
0
151
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.
 

jetnet

Active Member
Jun 30, 2004
28
0
151
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.
 

sparek-3

Well-Known Member
Aug 10, 2002
2,174
281
388
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 [email protected], 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.
 

jetnet

Active Member
Jun 30, 2004
28
0
151
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