Does anyone know why when I try to up the file handles in SUSE 9.1 I get the error:
someuser@somemachine:~> ulimit -n 4024
-bash: ulimit: open files: cannot modify limit: Operation not permitted
This happens when I ssh into the box. I haven't tried other access methods. Of course, the root user doesn't get such an error.
What I've tried so far:
Looked in /etc/profile, /etc/profile.local (doesn't exist), the local user .bashrc and .profile files, and in any other login files I could find. This doesn't appear to set a limit anywhere.
Looked in /etc/security/limits.conf, there is no nofiles setting in there.
Looked in /etc/pam.d/login and unset and reset a requirement to use pam_limits.so
Tried creating a /etc/profile.local and setting limits in there in hopes that it would set it as root.
Looked in /proc/sys/fs for the max fs limit, it's very high.
Somewhere, a hard limit is getting set. Maybe the default kernel setting or some special ssh setting? There is nothing in /etc/ssh/sshd_config that looks suspicious.