Bug 818702 - Unable to set a user's shell limits in RHEL 5.8
Unable to set a user's shell limits in RHEL 5.8
Status: CLOSED CANTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: pam (Show other bugs)
5.8
x86_64 Linux
unspecified Severity medium
: rc
: ---
Assigned To: Tomas Mraz
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-03 14:45 EDT by Gillian Roper
Modified: 2012-05-31 07:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-31 07:58:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gillian Roper 2012-05-03 14:45:54 EDT
Description of problem:
Hello there,
I am hosting an oracle database on my RHEL 5.8 server. Oracle requires that specific shell limits be set for the oracle user.
To do so I:
 a.) Added the following settings to /etc/security/limits.conf
     oracle              soft    nproc   2047
     oracle              hard    nproc   16384
     oracle              soft    nofile  4096
     oracle              hard    nofile  65536
     oracle              soft    stack   10240
b.) Added the following line in the /etc/pam.d/login file
session    required     /lib64/security/pam_limits.so

But when the oracle user logs into the server, their shell limits do not reflect the above.


RHEL 5.8 box
[oracle@serverx ~]$ limit
cputime      unlimited
filesize     unlimited
datasize     unlimited
stacksize    unlimited
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  1024
memorylocked 32 kbytes
maxproc      65536
[oracle@serverx ~]$ limit descriptors 1025
limit: descriptors: Can't set limit
[oracle@serverx ~]$
uname -a
Linux serverx 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

The oracle user's shell limits need to be set in order for the oracle database to function normally.

Thanks,
Gillian


Version-Release number of selected component (if applicable): N/A


How reproducible:
I have reproduced the same error on two seperate RHEL 5 servers. The error does not occur on RHEL AS 3 and RHEL 6 servers.

Steps to Reproduce:
1. Edit /etc/security/limits.conf, /etc/pam.d/login  and /etc/profile as described above.
2. Create a new ssh session for the oracle user (DO NOT su as root to oracle. You will not see the error)
3. view limits and attempt to change them
  
Actual results:
The incorrect limit descriptor is set for the user. Error "limit: descriptors: Can't set limit" is returned when attempting to increase the limit.

Expected results:
The oracle users's limits should match that in /etc/security/limits.conf

Additional info:
Comment 1 Tomas Mraz 2012-05-03 19:20:12 EDT
I cannot reproduce your problem.

While Red Hat welcomes bug reports on Red Hat products here in our
public bugzilla database, please keep in mind that bugzilla is not
a support tool or means of accessing support.  If you would like
technical support please visit our support portal at
access.redhat.com or call us for information on subscription
offerings to suit your needs.

Note You need to log in before you can comment on or make changes to this bug.