Thread View: comp.bugs.sys5
4 messages
4 total messages
Started by M. D. Parker
Thu, 08 Jun 1989 21:20
ULIMIT adjustment in System V kernel creation
Author: M. D. Parker
Date: Thu, 08 Jun 1989 21:20
Date: Thu, 08 Jun 1989 21:20
11 lines
1016 bytes
1016 bytes
Under the current System V R3 flavor of operating system I am using, our ULIMIT is gened up to max value. In otherwords, there is no restriction. While I like that approach, I do want to limit the value locally since we have had an occaion where one person ran us out of user disk space. My preference is to change this in the kernel. Initial examinations of what I have received do not point to which parameter to change. Anybody know? Yes, I do know that I could put a wrapper around /etc/init to do this but I'd really like to at least know about the kernel modification. Thanks for your help.
Re: ULIMIT adjustment in System V kernel creation
Author: Chris Lewis
Date: Fri, 09 Jun 1989 14:29
Date: Fri, 09 Jun 1989 14:29
52 lines
2482 bytes
2482 bytes
In article <252@chip.UUCP> mparker@chip.UUCP (M. D. Parker) writes:
>Under the current System V R3 flavor of operating system I am using,
>our ULIMIT is gened up to max value.
Oh you lucky sod! This is how it *should* be - makes everything else
so simple...
>In otherwords, there is no restriction.
>While I like that approach, I do want to limit the value locally since we
>have had an occaion where one person ran us out of user disk space. My
>preference is to change this in the kernel. Initial examinations of what
>I have received do not point to which parameter to change. Anybody know?
>Yes, I do know that I could put a wrapper around /etc/init to do this but
>I'd really like to at least know about the kernel modification.
Remember that you can adjust the ulimit *down* without root privilege...
Put in your /etc/profile:
if [ $LOGNAME = <users you wish to restrict> ]
then
ulimit <whatever you wish - as long as it's *downwards*>
fi
Or, get fancy and do something like:
ul=`sed -n -e '/^$LOGNAME[ <tab>]/s/^.*[ <tab>][ <tab>]*//p'
/etc/ulimitsperuser`
if [ -n "$ul" ]
then
ulimit $ul
fi
[/etc/ulimitsperuser consists of tab separated username, ulimit value
pairs, one pair per line]
remember:
- the user's shell runs /etc/profile and any shell settings/
ulimit etc persist for that user.
- *any* user can lower ulimit for themselves, but only root can
raise it
[Aside: it's too bad in a way that the shell you get doesn't run effective
id == 0 during execution of /etc/profile, and undoes this just before
executing your personal profile - would make upping ulimit or other similar
things easy to do on a per-user basis, though it would require some
co-operation from /etc/login and probably an explicit shell builtin to change
the effective userid back to the real]
--
Chris Lewis, R.H. Lathwell & Associates: Elegant Communications Inc.
UUCP: {uunet!mnetor, utcsri!utzoo}!lsuc!eci386!clewis
Phone: (416)-595-5425
Re: ULIMIT adjustment in System V kernel creation
Author: Doug Gwyn
Date: Fri, 09 Jun 1989 15:22
Date: Fri, 09 Jun 1989 15:22
5 lines
744 bytes
744 bytes
In article <252@chip.UUCP> mparker@chip.UUCP (M. D. Parker) writes: >While I like that approach, I do want to limit the value locally since we >have had an occaion where one person ran us out of user disk space. Set ulimit by a command in /etc/profile.
Re: ULIMIT adjustment in System V kernel creation
Author: John Gayman
Date: Sat, 10 Jun 1989 22:12
Date: Sat, 10 Jun 1989 22:12
25 lines
1378 bytes
1378 bytes
In article <252@chip.UUCP>, mparker@chip.UUCP (M. D. Parker) writes:
> Under the current System V R3 flavor of operating system I am using,
> our ULIMIT is gened up to max value. In otherwords, there is no restriction.
In the case of Microport V/386 the kernel is directly patchable to
whatever ULIMIT you like. I looked through the linkkit and couldn't
find any references to ulimit so perhaps "patch" is the only way.
In any event, a "patch" program comes with the distribution and you
simply invoke it with:
/etc/patch /unix Ulimit xxxx (where xxxx is the number of
blocks)
You then simply reboot and you have the new limit.
John
--
John Gayman, WA3WBU | UUCP: uunet!wa3wbu!john
1869 Valley Rd. | ARPA: john@wa3wbu.uu.net
Marysville, PA 17053 | Packet: WA3WBU @ AK3P
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads