RE: How to setup ftp to access only certain folders?
10-03-2017, 07:22 PM
(This post was last modified: 10-03-2017, 08:02 PM by FayeArmistead.
Edit Reason: additional information
)
Hello,
I came across this thread because I was trying to achieve a similar thing.
I wanted to create an FTP user who only has access to a single directory within a domain webspace (eg /var/sentora/hostdata/[Sentora-login]/public_html/[domain_tld]/[myDir] )
Creating a new home directory using the UI does not create a folder in the webspace and it is named automatically which isn't what I wanted.
Instead I created an FTP account for the domain directory and then updated two fields in the Sentora Database:
DB "sentora_core", Table "x_ftpaccounts", Column "ft_directory_vc" (for the selected user)
and
DB "sentora_proftpd", Table "ftpuser", Column "homedir" (for the selected user)
Seems to be working so far
I came across this thread because I was trying to achieve a similar thing.
I wanted to create an FTP user who only has access to a single directory within a domain webspace (eg /var/sentora/hostdata/[Sentora-login]/public_html/[domain_tld]/[myDir] )
Creating a new home directory using the UI does not create a folder in the webspace and it is named automatically which isn't what I wanted.
Instead I created an FTP account for the domain directory and then updated two fields in the Sentora Database:
DB "sentora_core", Table "x_ftpaccounts", Column "ft_directory_vc" (for the selected user)
and
DB "sentora_proftpd", Table "ftpuser", Column "homedir" (for the selected user)
Seems to be working so far