[SunHELP] Maximum users on a Solaris 2.6 server

Steven B. Parsons sunhelp at sunhelp.org
Tue Apr 3 22:33:05 CDT 2001


root at twister[607]> more /usr/include/sys/param.h | grep MAXUID
#define MAXUID          2147483647      /* max user id */

Im guessing that if I uncomment that out and do a reconfig reboot
I should be good . Currently there is nothing set for that variable and
im not able to find out what the default is.

Steve

----- Original Message -----
From: "Steven B. Parsons" <oz at columbus.rr.com>
To: <sunhelp at sunhelp.org>
Sent: Tuesday, April 03, 2001 11:28 PM
Subject: Re: [SunHELP] Maximum users on a Solaris 2.6 server


> Nicholas -
>
> Thanks for the prompt response .
>
> The problem is when I type useradd , put in a username
> its not added to /etc/passwd or the shadow file , no error
> is given just the user is never added.
>
> As you see below the box is very close to 4k users.
>
> Why I cant add anymore users is what im trying to find out.
>
> Steve
>
> ----- Original Message -----
> From: "Nicholas Dronen" <ndronen at frii.com>
> To: <sunhelp at sunhelp.org>
> Sent: Tuesday, April 03, 2001 11:29 PM
> Subject: Re: [SunHELP] Maximum users on a Solaris 2.6 server
>
>
> > Maxusers is a kernel parameter that affects processes, quotas
> > and the DLNC [1].  It does not affect the size of uid_t, which
> > is probably what you're hitting when you try to add a user
> > (presumably with useradd or admintool).  In fact, if you
> > look at the useradd man page (you don't say why you can't
> > add any more users, so I'm going on supposition), it says
> > that user ids must be "below MAXUID as defined in <sys/param.h>,"
> > which on my Solaris 8 system is 2147483647 (aka MAXUINT).
> >
> > So, changing maxusers probably won't change the behavior
> > you're seeing, but you don't describe the behavior very
> > exactly, so I might be mistaken.  More detail about
> > the problem would help.
> >
> > Regards,
> >
> > Nicholas Dronen
> >
> > [1]
>
http://docs.sun.com:80/ab2/coll.707.1/SOLTUNEPARAMREF/@Ab2PageView/1934?Dweb
> Query=maxusers&oqt=maxusers&Ab2Lang=C&Ab2Enc=iso-8859-1
> >
> > On Tue, Apr 03, 2001 at 10:59:23PM -0400, Steven B. Parsons wrote:
> > > /usr/ccs/bin/nm /kernel/genunix | grep maxusers
> > >
> > > [3572]  |         0|       0|NOTY |GLOB |0    |UNDEF  |maxusers
> > >
> > > root at twister[592]> more /etc/system | grep maxusers
> > > *               set maxusers=40
> > >
> > > root at twister[593]>      cat /etc/passwd  |wc
> > >     3696    4521  216715
> > >
> > > Im in a situation on a Sun 450 where useradd will not allow
> > > anymore users to be added to the box.  Im thinking that If I
> > > change the maxusers variable in /etc/system to say 5000 it will
> > > correct this problem.  Well after doing a reboot -- -r also.
> > >
> > > Could I get someone else's opinion on this before I make
> > > this change.  I do appreciate your response .
> > >
> > > Thanks
> > >
> > > Steven B. Parsons
> > > RoadRunner Sr System Engineer
> > > sparsons at columbus.rr.com
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > SunHELP maillist  -  SunHELP at sunhelp.org
> > > http://www.sunhelp.org/mailman/listinfo/sunhelp
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
>
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>




More information about the SunHELP mailing list