Re: Adjusting NGROUPS_MAX constant

2007-01-16 Thread Parker Anderson

Hello Dan,

On 1/16/07, Dan Casey <[EMAIL PROTECTED]> wrote:

I am running into trouble with users who are in more then 16 groups.  I
fail to ssh in with the following message:
sshd[96785]: initgroups(username,1002): Invalid argument

sysctl -a kern.ngroups
kern.ngroups: 16

Is there any reason why I should not raise NGROUPS_MAX in the following
two files?

/usr/include/sys/syslimits.h
/usr/src/sys/sys/syslimits.h


What could I accidentally break.. Or should I say, is there a good
reason why the number 16 is hard coded in there?


I found another post on this:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2005-05/1086.html

The poster outlines 3 potential issues, including issues with NFS with
an NGROUPS_MAX value above 16.  I'm not sure if those are still issues
(e.g. I don't use NFS), but that may be why the values have been set
that way by default.

I hope that thread helps!

Sincerely,
-Parker
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Adjusting NGROUPS_MAX constant

2007-01-16 Thread Dan Casey
I am running into trouble with users who are in more then 16 groups.  I
fail to ssh in with the following message:
sshd[96785]: initgroups(username,1002): Invalid argument

sysctl -a kern.ngroups
kern.ngroups: 16

Is there any reason why I should not raise NGROUPS_MAX in the following
two files?

/usr/include/sys/syslimits.h
/usr/src/sys/sys/syslimits.h


What could I accidentally break.. Or should I say, is there a good
reason why the number 16 is hard coded in there?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NGROUPS_MAX

2003-12-11 Thread Lowell Gilbert
"jonathan" <[EMAIL PROTECTED]> writes:

> Hi, i'm jonathan and i'm running a freebsd 4.8 box.
> 
> i wish to increase the value of  NGROUPS_MAX into /usr/src/sys/sys/syslimits.h.
> 
> I'd like to know how increasing that number to permit users from /etc/passwd to be 
> member of more than 16 groups will affect system performances. 

Depends on how the systems is used, to some extent.  You probably
won't notice it as long as it doesn't get ridiculously large.  I
realize that statement is a circular definition, but an accurate
answer would, well, depend on how the system is used.

> What will be an acceptable value for NGROUPS_MAX?
> I know this number is set to 32 in suse linux

I suspect doubling it would be fine, but trying it is the best way to
know.

> I know that ACL is a better way but i wont use it until it's stable under 5.x 
> freebsd and that 5.x is recomended for production issues.

If your application really requires this sort of thing, 5.x might be
more stable for your application than 4.x.  Or maybe you should
describe how you're getting to need so many groups, and see if someone
can suggest a better way without the groups...

> About how doing that change...
> Is it just about changing the value and reboot the machine or there is some 
> recompilation matter linked to that change?

You have to rebuild everything that uses it, of course.  I'd recommend
a full system rebuild.
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password "public"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


NGROUPS_MAX

2003-12-10 Thread jonathan
Hi, i'm jonathan and i'm running a freebsd 4.8 box.

i wish to increase the value of  NGROUPS_MAX into /usr/src/sys/sys/syslimits.h.

I'd like to know how increasing that number to permit users from /etc/passwd to be 
member of more than 16 groups will affect system performances. 

What will be an acceptable value for NGROUPS_MAX?
I know this number is set to 32 in suse linux
I know that ACL is a better way but i wont use it until it's stable under 5.x freebsd 
and that 5.x is recomended for production issues.

About how doing that change...
Is it just about changing the value and reboot the machine or there is some 
recompilation matter linked to that change?

Any help will be greatly appreciated!

I'm new to this list... everybody keep on that good work ;)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Change NGROUPS_MAX

2003-03-13 Thread Lowell Gilbert
"Artur Enaliev" <[EMAIL PROTECTED]> writes:

> Does anybody know how to safely change NGROUPS_MAX under Freebsd 4.7
> Release? The problem is that I need to make one user account to be joined to
> more then 16 groups.

It's in sys/syslimits.h, but be careful not to crank it too high;
you'll take some performance hit.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Change NGROUPS_MAX

2003-03-12 Thread Artur Enaliev
Hi All,

Does anybody know how to safely change NGROUPS_MAX under Freebsd 4.7
Release? The problem is that I need to make one user account to be joined to
more then 16 groups.

Sincerely,
Artur.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message