create ftp account with folder out of /home

morteza-icu

New member
Joined
Jul 1, 2011
Messages
3
hi
i have 3 disk on my server.one of them is for os and directadmin,...
and another for my download center files.
now i want to create ftp account that can access on second disk for example:
user admin directory is : /home/admin but i need to create ftp account that access to /second_hdd
when i try to create ftp account get this error :
"Cannot Execute Your Request

Details

That is not a valid path. Either it is not in your home directory, it doesn't exist, it contains symbolic links, or it contains invalid characters"

help me.
thanks
 
Simple answer: DirectAdmin is a shared hosting solution, and to protect users from each other it only allows FTP account creation into directories not in the accepted user path, which is /home/USERNAME, nor does it allow a symbolic link outside the user's directory.

You can either create FTP users outside of DirectAdmin, or possibly create a directory inside /home/USERNAME, and then through some other means remove it and replace it with a link. Note you may need to change your FTP configuration to allow symbolic links for FTP, but this could create a security risk.

You'll also need to make sure the chosen directory is readable by the user; if the download area is for all users, then for all users.

If your download directory is for the public you can consider creating it as an http accessible directory, or as a public ftp directory.

Hopefully others will reply with more ideas.

Jeff
 
thanks for your replay
my problem solved by editing /etc/proftpd.passwd file manually and change ftp user home directory.
 
Back
Top