Solved

What's the maximum number of users on Linux?

Posted on 2010-09-04
3
501 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
3 Comments
 
LVL 23

Accepted Solution

by:
savone earned 500 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need BIOS update Linux for MSI X99A motherboard. 4 53
expectj telnet failing 5 45
VMware Workstation 12 Player 16 122
linux - yum package installation issue 2 58
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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