LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2006, 04:16 PM   #1
despotic
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 15

Rep: Reputation: 0
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.
 
Old 11-05-2006, 04:31 PM   #2
despotic
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 11-05-2006, 04:33 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Assuming user's shell is bash

system wide : /etc/profile
user specific : ~/.bash_profile
 
Old 11-05-2006, 04:38 PM   #4
despotic
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 11-05-2006, 04:47 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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
 
Old 11-05-2006, 05:04 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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.
 
  


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
Caps Lock & Scroll Lock Flashing thedug Linux - General 6 06-07-2008 09:43 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
Default function - Can't lock screen -- please help me b:z Linux - General 11 05-30-2005 05:53 AM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration