MudBytes
Pages: << prev 1 next >>
ulimit
Kline
Sorcerer




Group: Members
Posts: 442
Joined: Dec 14, 2007

Go to the bottom of the page Go to the top of the page
#1 Posted Oct 6, 2008, 12:48 am

So maybe I really missed the mark on this, but I've tried a lot of googling and pulling my hair out to no avail :(

My user account on my machine is limited to 16mb cores. I need to increase this. ulimit -c says denied. Ok, cool. I su to root, edit /etc/security/limits.conf and set myself up for unlimited soft and hard limits. I re-login (it's per login, right?), ulimit -a shows no change, and I'm still denied to ulimit -c. My /etc/pam.d/common-session has session required pam_limits.so, too.

Where have I gone wrong? :(
.........................
AckFUSS -- Check it out.

Zeno
Wizard






Group: Moderators
Posts: 1,123
Joined: May 15, 2006

Go to the bottom of the page Go to the top of the page
#2 Posted Oct 6, 2008, 1:01 am

I would suggest allowing your user to use ulimit -c, although I don't know how. By default users were able to for me on my Slackware server.
.........................
-Zeno McDohl,
Owner of Bleached InuYasha Galaxy.
Zenorebirth: Free MUD host.
Learn how to build in Smaug at Smaug Building Institute.

quixadhal
Wizard






Group: Members
Posts: 1,256
Joined: Oct 17, 2007

Go to the bottom of the page Go to the top of the page
#3 Posted Oct 6, 2008, 6:09 am

You might also need to poke through the .bashrc, .bash_profile, and all those shell startup files... including any in /etc that get run.  ulimit is a feature of the shell, so if a system .bashrc re-limits you, your pam settings won't matter (at least in a practical sense).
.........................
http://i302.photobucket.com/albums/nn96/quixadhal/Alelord_banner.png

Kline
Sorcerer




Group: Members
Posts: 442
Joined: Dec 14, 2007

Go to the bottom of the page Go to the top of the page
#4 Posted Oct 10, 2008, 6:27 pm

I don't see it being re-limited anyplace like the different startups or bash profiles. I've also added a ulimit -c unlimited to my system-wide and local user .bashrc files. It still says operation denied, even when run from there. How do you "allow a user" to use ulimit?
.........................
AckFUSS -- Check it out.

quixadhal
Wizard






Group: Members
Posts: 1,256
Joined: Oct 17, 2007

Go to the bottom of the page Go to the top of the page
#5 Posted Oct 10, 2008, 10:43 pm

All I can say for sure is that a non-root user can't increase their limit above its current value.  So, if you have a limit of 16M for coresize, something is setting that limit, or your version of bash has that as a compiled-in default.  So, somewhere, something is imposing that limit before your shell switches to your non-root UID.

It looks like pam_limits is a module.  Hopefully it's smart enough to re-read the config file?
.........................
http://i302.photobucket.com/albums/nn96/quixadhal/Alelord_banner.png

Pages:<< prev 1 next >>

Valid XHTML 1.1! Valid CSS!