How to get an empty directory structure on user create

inferencia

Verified User
Joined
Aug 21, 2005
Messages
677
Location
Spain
Hello guys and gals,

I am seting up a DA server for FTP space provisioning only. In other words, the user will only have access to his default FTP account. I have the skin all setup with only FTP functions, removed all .html pages that are not FTP related.

The only thing left to do is to configure Directadmin to not create any files or folders under the /home/usercreated/ folder.

Is this possible? How can I make it happen? I've check some of the all_pre.sh hook stuff and can't figure out how to do it. Maybe a all_post_sh after it's created to remove the files ?

Any guidance is appreciated.

Cheers
 
Last edited:
Interested aswell..

A suggest should be post_create.sh script for execute a rm -rf /home/$username/*

But not so sure, just my 2 cent
 
@Sellerone:

Great suggestion!

Although, I think DA would need the structure still - perhaps delete from the domain part - that way all logs are kept:

/home/<user>/<domain>/public_ftp/
/home/<user>/<domain>/logs/

and remove:

public_html
private_html
awstats etc
 
Back
Top