Getting another directory create to everyones account

AbeFroman

BANNED
Feb 16, 2002
644
1
318
When I create an account in WHM I want a directory called /imagelib to be created in there www directory, how can I do this?

Every user needs to have a logical link from a directory called /imagelib in their www directory to the common directory that you placed the image library into.
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
Create the structure in the /cpanel-skel directory..... that is, preset the skeleton directory to whatever you want with whatever you want in it.

If you do a search on this forum you will find more information.

But that skeleton dir tweaking should do the trick....

good luck.
 

AbeFroman

BANNED
Feb 16, 2002
644
1
318
cpanel-skel?

Hello,

Thank you for your response, but, I am not sure what you mean by cpanel-skel, do i create a directory called cpanel-skel?


root@server100 [/usr/local/cpanel]# ls
./ bin/ cpaneld* entropychat/ ipaliases* newapi.txt startup*
../ cgi-sys/ cpanel.lisc etc/ java-sys/ perl/ tests/
\032\032 ChangeLog cpanellogd* ExampleModule.test.html lang/ phpcpanel* uninstall*
1 ChangeLog.html cpanelphp* findlatest LICENSE redhat/ version
3rdparty/ conf/ Cpanel.pm history/ liscerr* SafeFile.pm webmaild*
apache/ cpanel* cpconf* img-sys/ ll setupapache* whostmgr/
APACHE_CONFIG Cpanel/ cpkeyclt* inslibs* logs/ share/
api.txt cpanelcc* CVS/ install/ Makefile src/
base/ cpanelccp* dist/ installtheme* Makefile.old startstunnel*
 

awsol

Well-Known Member
Feb 8, 2002
578
0
316
Boston MA
There should already be a skel directory in your /root directory. /root/cpanel-skel to be exact. Anything you put in that folder will be placed into new accounts.
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
the directory name is &cpanel3-skel&. You may have one at /root or at a resellers homedir (each reseller has own &cpanel3-skel&). If there isn't one (as a reseller), create it.

Go inside:
cd /home/$resellerusername/cpanel3-skel/public_html

Make a symbolic link to &imagelib& using absolute path:
ln -s /absolute/path/to/imagelib imagelib

Have some red wine.

Kosmo