Different home dir for resellers
Hi
By default cPanel detects /home as the default home-directory for users and put them all in there, unless you define "Additional home directory" in Basic-WebhostManager-Setup so cPanel creates new users in the partition with more free space.But this is not what we need.
Our server has 3 SATA HDDs with RAID5 and a single /home directory, now we need to add a SSD Disk to the server for one of our customers which has a reseller account.
Is it possible to define the default home directory for a reseller account so the newly created users under this reseller account be in the SSD disk?
-
so you are trying to create a seperate home directory for the reseller and his account on SSD ? 0 -
so you are trying to create a seperate home directory for the reseller and his account on SSD ?
Correct0 -
Is it possible to define the default home directory for a reseller account so the newly created users under this reseller account be in the SSD disk?
Negative, I could be wrong but the only way I've ever known to do this is via the 'Rearrange an Account' option in WHM, you would have to give the reseller access to it so they could move it to the SSD array. I am assuming not something you would want to do so that means, monitoring newly created accounts and using the ' Rearrange an Account' option in WHM and moving them over as you see them get created. I don't see any kind of hook/API call that you can do, not even a way to do it via SSH: How to "Rearrange an Account" in SSH?0 -
you would have to give the reseller access to it so they could move it to the SSD array.
That's too painful! Any other ideas?0 -
Hello, It's not possible to configure a default home directory for a reseller. I encourage you to vote and add feedback to the existing feature request for this at: Set home directory for reseller Thank you. 0 -
Hello, It's not possible to configure a default home directory for a reseller. I encourage you to vote and add feedback to the existing feature request for this at: Set home directory for reseller Thank you.
I would definitely vote for this feature. In the mean time, is there an API call for "Rearrange an Account" functionality ?0 -
In the mean time, is there an API call for "Rearrange an Account" functionality ?
There is no command-line or API equivalent to this option. However, you could develop a custom script that checks if the owner is a reseller, and if so, manually moves the account's home directory after the account creation process. You'd have to review Guide to Standardized Hooks - Software Development Kit - cPanel Documentation Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation Thank you.0 -
There is no command-line or API equivalent to this option. However, you could develop a custom script that checks if the owner is a reseller, and if so, manually moves the account's home directory after the account creation process. You'd have to review Thank you.
Thanks for the suggestion but as you've mentioned this is an unsupported workaround and in my experience doing so would increase the chance of breaking things, so I guess we have to wait for a native option in future releases of cPanel.0
Please sign in to leave a comment.
Comments
8 comments