GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Operating System  >  UNIX
Go To First  |  Previous Question  |  Next Question 
 UNIX  |  Question 48 of 57    Print  
UNIX Maximum simultaneous logins
how many simultaneous logins are allowed in Linux/Solaris for a single user ?


  
Total Answers and Comments: 1 Last Update: December 10, 2007     Asked by: geek36 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 10, 2007 13:43:31   #1  
Amit Shiknis        

RE: UNIX Maximum simultaneous logins

The Linux PAM (Pluggable Authentication Modules) where we can set useful limits for users or login, which can be configured in the /etc/security/limits.conf file.You can control the total limitation with the maxlogins option. Entries within limits.conf have the following structure: username|@groupname type resource limit.

Groupnames must be preceded by the @ to distinguish them from usernames. The type must be either soft or hard. Soft-limits can be exceeded and are usually warning marks, whereas hard-limits cannot be exceeded. A resource can be one of these keywords:

core - Limits the size of a core file (KB).
data - Maximum data size (KB).
fsize - Maximum file size (KB).
memlock - Maximum locked-in memory address space (KB).
nofile - Maximum number of open files.
rss - Maximum resident set size (KB).
stack - Maximum stack size (KB).
cpu - Maximum CPU time in minutes.
nproc - Maximum number of processes.
as - Address space limit.
maxlogins - Maximum number of logins allowed for this user.


In the following code example, all users are limited to 10 MB per session and are allowed a total of four simultaneous logins. The third line disables core dumps for everybody. The fourth line removes all limits for user bin. ftp is allowed to have 10 simultaneous sessions (which is especially useful for anonymous ftp accounts); members of the group managers are limited to 40 processes. developers have a memlock limit of 64 MB and all members of wwwusers cannot create files that are larger than 50 MB.


Listing 3. Setting quotas and limits

*           hard  rss        10000
*           hard  maxlogins      4
*           hard  core           0
bin         -
ftp         hard  maxlogins     10
@managers   hard  nproc         40
@developers hard  memlock    64000
@wwwusers   hard  fsize      50000


To activate these limits, you need to add the following line to the bottom of /etc/pam.d/login: session required /lib/security/pam_limits.so.


Please let me know if you have any questions.

Thanks,
Amit Shiknis


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : This should be as below:sqlplus -s userid/password@databaseIn case you want to connect to SQL databasesqsh -S Servername -U username -P passwordIn case od SYBASEisql -S Servername -U username -P passwordRegards,Vaibhav ...

Latest Answer : simply- Memmanger -Sheduler- Interprocess Communication Manager-File system(because everything in unix taken as files..) ...
Read Answers (5) | Asked by : Beena

Latest Answer : well this question is more towards the architecture that the operating system has inherited and was predominanatly designed in a way that would have been easier for the integration and ifaster implementation by the end user. It is less of mechanisms or ...
Read Answers (1) | Asked by : Anu

1. To which operating system is GNU/Linux compatible? a. Windows b. Unix c. it\'s a system on it\'s own d. don\'t know2. What is the origin of GNU/Linux? a. 1984 by Richard 
Latest Answer : 1.c 2.a 3.b 4.a 5.c 6.c 7.b 8.c 9.b 10.b11.b 12.c 13.b 14.a 15.a 16.a 17.c ...
Read Answers (1) | Asked by : malyadri

What is kernel? What is the difference between kernel and microkernel? What is the difference between unix and Linux? What is relational database,hierarchal database. and network database? their difference?
Read Answers (4) | Asked by : somaraju
Tags : RDBMS

How to debug parts of a program in UNIX environment using CORE DUMP generated?Where core dump generated for a program is stored?
Read Answers (2) | Asked by : vijaya

How to find some particular lines in unix Vi editor which starts with a particular word and end with another particular word?? For ex - There are 10 lines in the editor and only 4 lines start with the word APPLE and end with the word MANGO.Now how to find out these particular lines in Unix?
Read Answers (5) | Asked by : sajit kumar

Latest Answer : WhenUnix is running, the kernel has been loaded into the memory. Thekernel file is located in /boot, name vmlinux, usually followed bythe version ...
Read Answers (2) | Asked by : sajit kumar

What is the default run level in IBM AIX? What are the 4 fields in Inittab file? How to see runlevel of unix system? Describes difference types of runlevel?
Read Answers (3) | Asked by : sachin

Latest Answer : using COMPRESS, BZIP, GZIP and TAR utilities ...
Read Answers (3) | Asked by : ayypss


 Sponsored Links

 
Related Articles

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Operating Systems and IT Certification

With the burst of information technology that is becoming a part of the dominant culture throughout the world, are programs that are designed to help those in this area to grow in knowledge.  By understanding the different technologies that are available, one is able to use them and impleme
 

Unix Client Server Technology

Unix Client Server Technology Understanding the Role of Unix When discussing client server technology it is important to understand UNIX one of the first primary building blocks for network possibilities that continues its influence today UNIX is an operating system designed for multi tasking by mul
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

How To Determine If Your CRM System Will Fail

How To Determine If Your CRM System Will Fail One of the primary reasons why many CRM systems fail is because of the quality of the data Even if you are using a high end CRM system your company will have no chance of success if it is processing data that is incorrect or faulty Fortunately data quali
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape