Default Directory for new users

dacsoft

Verified User
Joined
Aug 9, 2003
Messages
6
Location
Melbourne, Florida
Is there someway to setup a default public_html folder that would automatically be used when creating new user accounts? I am looking for something similar to CPanel's skeleton directory?

Thanks
Dacsoft
 
Thanks for the help. What about if I wanted to place a specific cgi script in all new users. Is there a way to do this?

I have the same question about the default index.html. Where is that maintained?

Can you tell this is my first attempt at a dedicated server?


Thanks
Dacsoft
 
Hello,

We have *brand* new feature, just released where a Reseller can create:

/home/resellername/domains/default

and fill the default directory with anything they want in their users' homepage.

The index.html file will be tokenized with the basic info (more info can be found at: http://www.directadmin.com/features.php?id=138 )


If you want to add a cgi for all users, you would just create:

/home/resellername/domains/default/cgi-bin/scriptname.pl

Just make sure that everything is world readable.

John
 
DirectAdmin Support said:
Hello,

We have *brand* new feature, just released where a Reseller can create:

/home/resellername/domains/default

and fill the default directory with anything they want in their users' homepage.

This is nice, but it's only marginally useful as it does not allow one to populate anything outside the user's public document root. If I want to automatically setup a private includes folder to hold important configuration settings with passwords etc that lies outside of public_html, I have to go in and do it manually.
 
Hello,

There are numerous custom scripts you can create to automate what you're looking for.

1) /usr/local/directadmin/scripts/custom/user_create_post.sh
Run after a user is created. $username and $domain variables allow you to setup whatever you want.

2) /usr/local/directadmin/scripts/custom/domain_create_post.sh
Same thing.. same variables, but run for each new domain (is run during user creation, so this is preferred if you are doing per-domain setups, eg, private_html).

There is quite a large number of custom scripts you can play with, and each has a decent set of variables that are passed to them.
For the basics, see the "README" file in the "custom" directory, or see http://www.directadmin.com/search_versions.php?query=post.sh for a bigger list of newer custom scripts you can use.

John
 
The scripts you list are only available to server admins and not to resellers, correct?
It would be nice if resellers had some way to do something similar for users they create.
Alternately, maybe copy the default folder a (few?) levels higher than 'public_html' to allow more flexability.
 
Last edited:
Back
Top