This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by: mohamedh
#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
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)