LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   default ulimit lock value? (https://www.linuxquestions.org/questions/slackware-14/default-ulimit-lock-value-498916/)

despotic 11-05-2006 04:16 PM

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.

despotic 11-05-2006 04:31 PM

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?

keefaz 11-05-2006 04:33 PM

Assuming user's shell is bash

system wide : /etc/profile
user specific : ~/.bash_profile

despotic 11-05-2006 04:38 PM

Quote:

Originally Posted by keefaz
Assuming user's shell is bash

system wide : /etc/profile
user specific : ~/.bash_profile

well ... only root can change some of the limits so that doesn't really work.

Thanks for the idea thou. Any more?

keefaz 11-05-2006 04:47 PM

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

osor 11-05-2006 05:04 PM

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.