LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-02-2009, 10:05 AM   #1
linuxuser420
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
How toChange ulimit -v to unlimited?


Hi,
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?
 
Old 09-02-2009, 05:52 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
/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:

Code:
[bob@example ~]$ ulimit -v
unlimited
[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 ~]$

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
core dump file size exceeds limit with ulimit -f unlimited. initpidzero Linux - Software 0 07-28-2009 02:08 AM
Change ulimit to unlimited for every user in redhat enterprise linux. ahmedsaeedkhan Linux - Newbie 2 02-11-2009 07:52 AM
How to change hostname on shell [user@tochange] guarriman Fedora 2 01-15-2007 12:04 AM
Installing Maya 6.5 unlimited herve2001 Slackware 4 07-17-2005 01:38 AM
Come and get unlimited Wallpapers futurist General 8 04-03-2003 01:33 PM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration