default ulimit lock value?
How can I set a default "ulimit -l" value for a specific user or even system wide default on slackware?
There is a way to do that with PAM, but slack doesn't use that. |
Ok .. I found out that this can be done with /etc/limits, but it doesn't seem to work when I ssh in. Any help?
|
Assuming user's shell is bash
system wide : /etc/profile user specific : ~/.bash_profile |
Quote:
Thanks for the idea thou. Any more? |
I would make different groups in this case,
each with different ulimit settings, then I check the GID's in the /etc/profile script and I adjust the ulimit accordingly... Just an idea, or maybe if it is for a few users, just adjust the ulimit with an UID check |
If you want it to work with ssh and other things, you need to build them all with PAM support. Then use /etc/security/limits.conf.
|
All times are GMT -5. The time now is 07:30 AM. |