Submitted by singhdd on Tue, 09/13/2016 - 14:14
Allow sub-servers under other users' domains? & Allow sub-servers not under this domain? are not working.
I have both these set to No and even them I am able to create subserver not under top level server and also able to create subserver of domain belonging to other users.
Kindly look into this ASAP. This is happening on both Pro and GPL on Ubuntu 14.04 & CentOS7
Status:
Active
Comments
Submitted by JamieCameron on Tue, 09/13/2016 - 21:56 Comment #1
Are you creating these domains as root, or when logging in as the domain owner?
Submitted by singhdd on Tue, 09/13/2016 - 23:17 Comment #2
I am created the top level server as root and sub server as domain owner.
Submitted by JamieCameron on Thu, 09/15/2016 - 01:35 Comment #3
Can you post the contents of the file
/etc/webmin/virtual-server/USER.acl
whereUSER
is the domain owner's login?Submitted by singhdd on Thu, 09/15/2016 - 02:30 Comment #4
Here are contents:
Submitted by JamieCameron on Fri, 09/16/2016 - 01:40 Comment #5
From that file, it looks like the restriction to force new domains to be under the parent isn't enabled - the
forceunder
line should beforceunder=1
What page in Virtualmin did you originally set this on?
Submitted by singhdd on Fri, 09/16/2016 - 02:11 Comment #6
What I did is: Created Account Plan as :
And then added the domain Selecting the above account plan
Submitted by JamieCameron on Fri, 09/16/2016 - 22:37 Comment #7
If you go to Administration Options -> Edit Owner Limits for the domain, is "Allow sub-servers not under this domain?" set to "Yes" or "No" ?
Submitted by singhdd on Fri, 09/16/2016 - 23:51 Comment #8
"Allow sub-servers not under this domain?" was set to Yes. If I change to No. It saves and stores it properly. I think it is not getting the value from Account Plan properly.
I just tried creating another top level server with a new account plan with same settings but even that had
Allow sub-servers not under this domain? Yes
Allow sub-servers under other users' domains? Yes
while both these were set to No in Account Plan
Submitted by JamieCameron on Sat, 09/17/2016 - 13:45 Comment #9
I'm confused as to why that isn't happening ..
In your
/etc/webmin/virtual-server/config
file, do you have the linetemplate_auto=1
?Submitted by singhdd on Sat, 09/17/2016 - 17:34 Comment #10
template_auto=0 is in config file. Should I change it to 1 ?
Submitted by JamieCameron on Sat, 09/17/2016 - 19:33 Comment #11
Yes, try setting it to 1 (which is the default in new Virtualmin installs).
When this is set to 0, you have the option of setting various limits on the domain creation form to override the defaults from the plan. However, due to a bug this means that the "force domains to be under parent" option isn't copied from the plan to the new user.
Submitted by singhdd on Sat, 09/17/2016 - 23:52 Comment #12
Yes it works fine when using template_auto=1 in config file.
So the bug only happens when we have changed setting to allow overrides at creation time. (BTW this used to work fine few months back)
Submitted by JamieCameron on Sun, 09/18/2016 - 00:47 Comment #13
Looking at the code, I don't think this ever worked properly actually..