Incorrect HomeRoot - New Account Creation Problems

atorreso

Member
Jan 14, 2005
19
0
151
Good Afternoon,

After searching for several hours, I am unable to find the answers.

Currently we have a server with two hard drives in it.
All of a sudden all new accounts are trying to be created on this new HD.
Inside of Main >> Server Configuration >> Basic cPanel/WHM Setup
The Default Home Directory is correctly set to /home

The Home Directory Prefix is home

Yet when we try and create a new account the following errors happen.

Copying skel files from /root/cpanel3-skel/ to /home/emeraldv/public_html/newdrive/magdal/
Using Quota v3 Support


Could not create /home/emeraldv/public_html/newdrive/magdal/mail/inbox: Permission denied

Which of coarse is due to the second HD being owned by one customer, not root for the entire server.

Current Server Builds:
WHM 10.8.0 cPanel 10.9.0-R57
CentOS 3.8 i686 - WHM X v3.1.0

Thank you,

Anthony
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
77
308
cPanel Access Level
Root Administrator
Did you use WHM to setup the new drive, or did you do it manually at the command line?
 

sparksupport

Member
Apr 30, 2006
20
0
151
Hello,

From the erros
++++++++++++++++
Copying skel files from /root/cpanel3-skel/ to /home/emeraldv/public_html/newdrive/magdal/
Using Quota v3 Support

Could not create /home/emeraldv/public_html/newdrive/magdal/mail/inbox: Permission denied
++++++++++++++++
I could see that the account is not creating in the actul path. The Actual path should be "/home/magdal/mail" not "/home/emeraldv/public_html/newdrive/magdal/mail/". That means the "/home/emeraldv/public_html/" path is prefixing there instead of "/home".
Check the wwwacct.conf file and make sure the "The Default Home Directory" is set correctly there.
 

atorreso

Member
Jan 14, 2005
19
0
151
cpanelkenneth:
Command line, several months ago. Mind you on this server we stopped adding accounts ourselves, but one of my resellers just did. He showed this to me.


sparksupport:
/etc/wwwacct.conf

HOMEDIR /home
HOMEMATCH home


Any other ideas?

Thanks,

Anthony
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
77
308
cPanel Access Level
Root Administrator
When accounts are created, the process defaults to using the home partition with the most free space available. Depending upon how it actually checks that data, the drive being mounted under home (even though the mount is /home/emeraldv/public_html/newdrive) maybe "confusing" the process. Try umounting the drive and adding an account. If the account is successfully created under /home then that is the problem. Please let me know whether that works.

I'll also see if I can duplicate the scenario. If so, I'll open a bug report and post the link here. Still, please let me know if unmounting the drive resolves the problem.
 

atorreso

Member
Jan 14, 2005
19
0
151
Kenneth,

That was it, as soon as I unmounted the drive it worked just fine.

Yes the HD was an odd request, but for a special customer.

Thank you so much for the work around. However....... If he goes to add more accounts we will be in the same boat. However we have a fix.. :)

Thank you so much,

Anthony
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
77
308
cPanel Access Level
Root Administrator
No problem, glad it was an easy fix. Once i duplicate this and post a bug report, hopefully we can work a real fix for this into our schedule.