?
Solved

What's the maximum number of users on Linux?

Posted on 2010-09-04
3
Medium Priority
?
505 Views
Last Modified: 2012-06-21
Does anyone know what's the maximum number of users that can be created on Linux?
I am using SLES 9 64bits.
Thanks.
0
Comment
Question by:edolivier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Accepted Solution

by:
savone earned 2000 total points
ID: 33603095
WOW, interesting question...

Did some looking around and found this:
http://www.linuxquestions.org/questions/linux-newbie-8/whats-the-maximum-number-of-users-on-linux-258198/

quoted "from http://en.wikipedia.org/wiki/Linux_kernel
I understand that whit the 2.6 kernel, the maximum number of users/groups on a system Increased from 65,000 to over 4 billion

to that should mean 65.000 for 2.4 kernels, and 4 billion for 2.6 kernels"

0
 
LVL 4

Expert Comment

by:pingvinos
ID: 33603714
Read the same too.If you are interested in checking by yourself if it is 65000 or more,I wrote this php code to create 70,000 users,so you can see if it works.My home machine was very slow so I aborted it after 2,000 users..

<?phpfor($i=0;$i<70000;$i++)shell_exec("useraddtestuser$i");?>

And to delete them afterwards(with their home directories as well).
<?phpfor($i=0;$i<70000;$i++)shell_exec("userdel -r testuser$i");?>
have fun!
0
 
LVL 4

Expert Comment

by:l4ncel0t
ID: 33603993
No need to create all user, just try to make a user with a UID above 65536

But who want so much user on his system ?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question