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?
/etc/security/limits.conf is the way to do it as far as I am aware. Is anything currently defined that might impose this for your user in limits.conf (or elsewhere)?
When I checked my RHEL5.2 install I see the following by default:
|All times are GMT -5. The time now is 10:23 PM.|