FTP base directory

michelb

New member
Joined
Jan 19, 2015
Messages
3
Hi,

I would like to be able to set my base FTP directory for my default user to the public_html folder.
I'm using Laravel for a project, and want the DirectAdmin user (not provided to the customer, only for internal use) to login with there FTP account and immediately be in the public_html folder.

I tried this with the /etc/proftpd.passwd, and set it to custom:/home/user/domains/domain.com/public_html and that worked, but when i change the domainname in DirectAdmin, the file is regenerated. What would be the best option for this?

It's only for some DA users, there also users on the machine that are "normally" used.

Thanks,
Michel
 
I guess the default path is harcoded in directadmin, so you should use either a virtual FTP account or POST/PRE scripts to update /etc/proftpd.passwd towards your needs on every domain add/change/delete action.
 
Back
Top