On Sat, 3 Sep 2011, Federico Alves wrote:


I am using SL 6.1 64 Bits. There is a difference with Red Hat that is
affecting me and I cannot figure out where is the difference, because I
compared and all configuration files are identical.
Every time I login, I get this message:
-bash: ulimit: open files: cannot modify limit: Operation not permitted

This is because in my /etc/profile I have
ulimit -S -c 0 > /dev/null 2>&1
ulimit -c unlimited
ulimit -n 2548576
ulimit -i 2548576

[ Why both ulimit "-S -c 0" and "ulimit -c unlimited"
  - wont the second override the first ? ]

Hmm. 'man ulimit' on SL6.1 says
              -n     The  maximum  number of open file descriptors (most
                     systems do not allow this value to be set)

What does it say on Red Hat ? Which Red Hat ?

However, I have the same exact setup for all my Red Hat machines and there
is no issue or error. I am of course logging in as root, not an
unprivileged user.

--
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[email protected]   http://www.dpmms.cam.ac.uk/~werdna

Reply via email to