Menu

#4495 Virtualmin - Secondary groups for virtual server owners are not honoured per template

1.710
open
nobody
virtualmin (11)
5
2014-10-23
2014-10-23
No

Hi,

This one is little harder to explain. Here is how to reproduce:

1) Make two server templates.

2) In first template, section Administration user, option Add domain owners to secondary group, check "None".

3) In second template, same option, check Selected group and put "somegroup" (existing empty group).

4) Make new virtual server, eg. "test1.com" using the first template. "somegroup" will still be empty.

5) If you now make another virtual server, eg. "test2.com" using the second template, "somegroup" will be populated with both users eg. in /etc/group there would be "somegroup:x:124:test1,test2". As if this option of adding server owners to secondary groups was global and not per template.

I think the problem is in "feature-unix.pl", "sub update_domain_owners_group" but it's not trivial for me to fix. Even the comment in the code says:

update_domain_owners_group([&new-domain], [&deleting-domain])
If configured, update the member list of a secondary group which should
contain all domain owners.

Thanks in advance!

Bojan Vitnik

Discussion


Log in to post a comment.