Create ftp account with custom directory
#1
Create ftp account with custom directory
Hello,

I would like to create an ftp account that is jailed to a specific folder under one of my domains.
How could I achieve this?

The options given to me in the web interface are only limited to creating new folders and the entire domain's folder.
So if my domain's folder is domain_com how do I restrict a user to "domain_com/specific_folder"

instead of the entire domain_com folder?

Thanks in advance
Reply
#2
RE: Create ftp account with custom directory
It can be done, but you will need to edit the entry in the database manually by adding the folder to the end of the domain. It's been a while since I last tried it and I'm not home right now to check the database table but I believe it is x_ftp_accounts.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Create ftp account with custom directory
Hi, thanks for your reply.

After what you said, I checked a bit the way proftpd works, and I figured it.

In case anyone else needs to achieve this:

We will have to edit the database, (either cli or phpmyadmin)
1- create the user from the panel with any path
2- Navigate to the datasentora_proftpd
3- Navigate to the 4th table ftpuser
4- find the user that we which to modify and simply edit its homedir.

It's very easy, and the steps are intuitive once you know that you have to edit the dir in the database. it just took me 2-4 minutes.
Reply
#4
RE: Create ftp account with custom directory
I also think it needs to be done in the sentora_core.x_ftpaccounts.ft_directory_vc since that is where proftpd gets its original info (This will also show up properly inside Sentora FTP manager)

Glad you sorted it out.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Login fails FTP Account davidlambda 5 30 ,042 04-18-2020, 10:36 AM
Last Post: Jettaman
Stuck on "Retrieving directory listing..." Reck 1 10 ,262 08-31-2015, 01:42 AM
Last Post: Reck
Directory listing filezilla error olubee 10 42 ,063 08-12-2015, 09:44 AM
Last Post: james415

Forum Jump:


Users browsing this thread: 1 Guest(s)