-   Linux - Newbie (
-   -   How toChange ulimit -v to unlimited? (

linuxuser420 09-02-2009 10:05 AM

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?

rayfordj 09-02-2009 05:52 PM

/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:


[bob@example ~]$ ulimit -v
[bob@example ~]$ grep -v ^# /etc/security/limits.conf

[bob@example ~]$ cat /etc/redhat-release ; uname -ir
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
2.6.18-92.el5xen x86_64
[bob@example ~]$


All times are GMT -5. The time now is 10:23 PM.