How toChange ulimit -v to unlimited?
This question is about Red Hat Enterprise Linux Server release 5.2 .
As a regular user(not root), I am trying to set virtual memory via ulimit -v unlimited but get this error
-bash: ulimit: virtual memory: cannot modify limit: Operation not permitted
If I log in as su, then I am able to run the command and then su as regular user and the shell then inherits the limits of the earlier shell process, but thats a sort of hack.
I have also looked at changing the /etc/security/limits.conf but that won't work either.
I have changed /etc/profile also but that won't work for regular user.
Is there anyway to do this cleanly for all users?