LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2015, 11:09 PM   #1
jayden
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
Question How to limit maximum number of user accounts


Is it possible to limit maximum number of user accounts?

My kernel version is 2.6.32. So It can support 4 billion user accounts now
But I hope to limit the quantity

I believe there is some ways to fix this, but I can't find the solution by myself.
 
Old 04-23-2015, 11:21 PM   #2
jayden
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
I find some result.
It seems that It shows some solution. But I can't understand what does it mean

Linux+ Study GUide document by Roderick W.Smith
It says like below
"(The limit is 65,536 users with the 2.2.x kernels and over 4.2 billion with the 2.4.x kernels, including root and other system accounts. The limit can be set lower in configuration files or because of limits in support programs.) "
 
Old 04-23-2015, 11:57 PM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
login or users?

i found one here.. http://stackoverflow.com/questions/1...ogins-in-linux

some info: http://www.linuxquestions.org/questi...-linux-258198/
 
Old 04-24-2015, 01:06 AM   #4
jayden
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for your help, But.. already read these two article before
and the issue is "To limit number of user account which linux can has", Not 'the number of user log-on session quantity at one time"

Quote:
Originally Posted by RMLinux View Post
 
Old 04-24-2015, 01:33 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Look at the file '/etc/logins.def'. With this we can limit the number of creatable users. (UID_MIN, UID_MAX and friends)
 
1 members found this post helpful.
Old 04-24-2015, 06:12 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,409

Rep: Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208
Tell yourself not to make too many users. Root account is only user that should be allowed to make users.

I guess it might be possible to limit size of file(s) that are used in process.

Might be possible to use some other logon means where maybe a user could get created but never be allowed to access.
 
Old 04-27-2015, 02:21 AM   #7
jayden
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your help
Quote:
Originally Posted by veerain View Post
Look at the file '/etc/logins.def'. With this we can limit the number of creatable users. (UID_MIN, UID_MAX and friends)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit the number of logins for a user to only one. llaulainen Linux - Server 1 05-03-2011 01:31 PM
maximum number of processes per user kshkid Programming 10 07-06-2006 03:41 PM
Limiting the number of root user accounts barleykorn Linux - General 2 03-25-2005 11:51 AM
Limit the number of background processes per user... trendwhore Linux - Security 6 08-27-2004 02:09 PM
Squid - Maximum time limit per user vkothiyal Linux - Software 0 05-29-2004 08:36 AM


All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration