I'm trying to set the nofile Hard and Soft limits on several RH8.0 boxes for
users since they cannot sudo ulimit.  The boxes are a combination of patched
systems, as well as straight off the install systems.  I use the following
procedure which works in RH7.3/RHAS7.3 and is documented everywhere:

Edit the /etc/security/limits.conf and add the following:
*     soft    nofile          4096
*     hard    nofile          8192

Add the following line to the /etc/pam.d/login file:
session    required     /lib/security/pam_limits.so  

to make it look like:

#%PAM-1.0
auth       required     /lib/security/pam_securety.so
auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    optional     /lib/security/pam_console.so
session    required     /lib/security/pam_limits.so

Then reboot.

Now, this seems to work fine for the other platforms (Haven't tried RH9) but
it does nothing in RH8.0.  I can lower the limit successfully, but upping it
even to the previous value gives the following:

-bash: ulimit: open files: cannot modify limit: Operation not permitted

The system file-max seems to be fine:
cat /proc/sys/fs/file-max 
13107

Now if I do a ulimit -a -H as a user, the limit still shows 1024.

Anyone know if there is something different in RH8.0, or if maybe PAM had
issues?

Thanks in advance,
Brian


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to