Koozali.org: home of the SME Server

Maximum of 28 Group in SME 5.6

Sylvain

Maximum of 28 Group in SME 5.6
« on: June 05, 2003, 12:49:03 AM »
In the server-mangager, we have already created 28 groups and it tell us we already have the maximum group.

Why is that?

I wish to create more group

Is anybody got more than 28 groups.

Regards,

Sylvain

Henrik Jensen

Re: Maximum of 28 Group in SME 5.6
« Reply #1 on: June 05, 2003, 03:39:07 PM »
Hi! Funny I just experienced the same problem today. Hoping for a solution too.

Henrik

Kelvin

Re: Maximum of 28 Group in SME 5.6
« Reply #2 on: June 05, 2003, 04:01:48 PM »
Search the forums and you will find the answer.

Kelvin

Scott Smith

Re: Maximum of 28 Group in SME 5.6
« Reply #3 on: June 05, 2003, 08:09:29 PM »
The answer is:

It is the result of an design decision to automatically add 'admin' to every group. Since linux arbitrarily limits the number of groups a user can belong to to 32, and since SME creates a few non-visible (in the manager) groups, the limit on the number of groups had to be pegged at 28.

Note that the 32 limit is on the number of groups a user can belong to, not on the number of groups that can exist. I've seen linux systems with hundreds of groups. In fact, you'll notice that a private group is created for every user, so if you have 500 users you have at least 500 groups, plus the default groups that are created, plus any groups created via the SME manager.

Note also that the 32 groups per user limit can be increased, but it is a non-trivial hack and probably causes more problems than it solves.

The question I've never seen adequately answered is this:

Why must 'admin' be a member of every group?

I believe this is because even though even though admin and root share the same password, admin does not share root's access rights. The uid/gid for admin is 101/101. To mimic root it would need to be 0/0. I suspect the rationale for including admin in every group is so that it can read/write the various group owned directories and files, which it would not otherwise be allowed to do given its normal user uid/gid.

To remove admin from every SME-defined group, I suspect would require 'su' wrappers around several console and web manager functions. This is a development issue, and probably one of significant scope.

There might also be some loss of functionality, such as 'admin' being able to access any i-bay (via http, ftp, samba, appletalk) it chooses. This is not so much a development problem as it is a systems management issue. If you are the administrator, you can always login as root to do your damage (I mean, administration.) But, SME is designed to protect non-technical types from the complexities of their system.

Perhaps a solution could be to provide a console interface that would chroot to the base of a selected user or i-bay and execute 'mc' (Midnight Commander) or some other file manager. Or, a web interface to one of the less powerful but arguably more friendly browser-based file managers.

fwiw

guestHH

Re: Maximum of 28 Group in SME 5.6
« Reply #4 on: June 06, 2003, 02:11:50 AM »
This must be one of the most excelent replies I've ver seen in these forums.

- It's clear and well written
- It explains the cause
- It expalins the limitations
- It explains the consequences
- It reveals issues to be resolved
- It hints for solutions

This is my personal opinion. Well done Scott!

Now for a solution, I think this would be a great opportunity to create a joined community effort over at contribs.org.

Scott, if you will, please request contribs@rstrat.com for a dedicated projects topic to start joined efforts.

TIA
Regards,
guestHH

Charlie Brady

Re: Maximum of 28 Group in SME 5.6
« Reply #5 on: June 06, 2003, 02:17:49 AM »
guestHH wrote:

> Well done Scott!

Indeed.

> Scott, if you will, please request contribs@rstrat.com for a
> dedicated projects topic to start joined efforts.

Why wouldn't you wish to discuss this on the devinfo mailing list? That's exactly what the list is for (and it already exists).

Charlie

guestHH

Re: Maximum of 28 Group in SME 5.6
« Reply #6 on: June 06, 2003, 12:21:55 PM »
Whatever you choose Scott, it's up to you. No problems with both of them.

Scott Smith

Re: Maximum of 28 Group in SME 5.6
« Reply #7 on: June 06, 2003, 07:27:49 PM »
I tend to agree with Charlie. The devinfo list is an appropriate place to have such a discussion. I will kick of the thread there.

Cyrus

Maximum of 28 Group in SME 5.6
« Reply #8 on: July 13, 2005, 06:28:21 AM »
So has any fix for this problem been found?

I now have a cron job which runs the lat-groups admin and www removal, and then adds admin and www into the proper places in the groups and groups- file.

This is a very dirty fix so I searched the forums but have not found any fix yet, or am I not looking hard enough?

SME 6.0.1-01