Discussion:
[gentoo-user] Set "max locked memory" to unlimited
(too old to reply)
Justin
2008-07-24 08:10:08 UTC
Permalink
Hi all,

I tryed to set the "max locked memory" for a user to unlimited.
I did this in that way,
opened shell
su
ulimit -l unlimited
exit
ulimit -a

And the unlimited was gone and reset to 32k. As root it was set right.

What did I do wrong, or where else I have to change things?


Thanks,
justin
Daniel Iliev
2008-07-24 13:30:18 UTC
Permalink
On Thu, 24 Jul 2008 10:01:17 +0200
Post by Justin
Hi all,
I tryed to set the "max locked memory" for a user to unlimited.
I did this in that way,
opened shell
su
ulimit -l unlimited
exit
ulimit -a
And the unlimited was gone and reset to 32k. As root it was set right.
What did I do wrong, or where else I have to change things?
Thanks,
justin
Assuming your system is PAM-enabled, you can set the limits by editing
"/etc/security/limits.conf".

The new limits will not affect sessions which are already started. In
other words you need to log off/on for the new settings to take effect.

More info: man(5) limits.conf
--
Best regards,
Daniel
Justin
2008-07-25 16:20:08 UTC
Permalink
Post by Daniel Iliev
Assuming your system is PAM-enabled, you can set the limits by editing
"/etc/security/limits.conf".
The new limits will not affect sessions which are already started. In
other words you need to log off/on for the new settings to take effect.
More info: man(5) limits.conf
That works, but how can I set it to unlimited?
Daniel Iliev
2008-07-28 14:20:16 UTC
Permalink
On Fri, 25 Jul 2008 18:10:03 +0200
Post by Justin
Post by Daniel Iliev
Assuming your system is PAM-enabled, you can set the limits by
editing "/etc/security/limits.conf".
The new limits will not affect sessions which are already started.
In other words you need to log off/on for the new settings to take
effect.
More info: man(5) limits.conf
That works, but how can I set it to unlimited?
If you have no entry there should be no limit. Alternatively, I
believe, a dash ("-") can be used to specify "unlimited".
--
Best regards,
Daniel
Continue reading on narkive:
Loading...