LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-24-2011, 09:23 AM   #1
yewhiong
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Implementing limits


Hi, I would like to implement limits in my Linux server. But it just couldn't work.

I have amended /etc/security/limits.conf.

# cat /etc/security/limits.conf
@Guests - maxlogins 1

# cat /etc/pam.d/system-auth
...
session required pam_limits.so
....

In the system-auth file, do I have to amend "pam_limits.so" to "lib/security/pam_limits.so" in order to get it working?

Regards,
yewhiong
 
Old 02-24-2011, 11:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by yewhiong View Post
In the system-auth file, do I have to amend "pam_limits.so" to "lib/security/pam_limits.so" in order to get it working?
If you mean that you have to prefix the full path to the library name then I'd say no, not on RHEL5 / Centos 5.


Quote:
Originally Posted by yewhiong View Post
But it just couldn't work.
"Doesn't work" is the least interesting thing to say as we can not learn anything from it. What would be interesting are any related log lines (usually: /var/log/secure) or errors. Also note /usr/share/doc/pam-*/txts/README.pam_limits shows you can use the "debug" directive to make it log more verbose.


Quote:
Originally Posted by yewhiong View Post
@Guests - maxlogins 1
Are you sure the group name is with a capital G?
 
1 members found this post helpful.
Old 02-24-2011, 08:54 PM   #3
yewhiong
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hi unSpawn,

Thanks. So for RHEL5, we do not need to specify /lib/security/pam_limits.so. Just the pam_limits.so will do.

It's a spelling error in my groupname.
 
Old 02-25-2011, 11:27 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by yewhiong View Post
So for RHEL5, (..) Just the pam_limits.so will do.
Yes.


Quote:
Originally Posted by yewhiong View Post
It's a spelling error in my groupname.
OK, but is it the error that keeps limits from functioning, that's what I would like to know.
 
  


Reply



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
where is limits.h? baxzius Linux - Newbie 1 06-29-2010 06:48 AM
CPU Limits Harlin Linux - General 4 05-18-2008 02:18 AM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 10:14 AM
no /etc/limits ? Mig21 Slackware 7 07-25-2005 11:18 PM
Limits on certain ip connections. newhost Linux - Security 3 03-09-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration