File: lshell.1

package info (click to toggle)
lshell 2.01-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 116 kB
  • ctags: 9
  • sloc: sh: 155; ansic: 141; makefile: 39
file content (63 lines) | stat: -rw-r--r-- 2,084 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.TH LSHELL 1 "LShell Utility -- Version 2.01" "S. Joel Katz" \" -*- nroff -*-
.SH NAME
lshell \- Securely establish process limits upon login
.SH SYNOPSIS
Make a copy a user's login shell.
.SH DESCRIPTION
.B LShell
allows a system administrator to easily set and maintain per-user
limits on CPU time, number of processes, virtual memory usage, and open
files. A master file (/etc/limits) contains a default entry and overriding
entries for specific users.
.PP
Copy the real shell into /bin/shells and replace the shell in /bin with a
copy of
.B lshell.
.PP
Repeat this for every legal login shell on your system.
.SH /etc/lshell.conf
This file contains the entries for the resource limits. Each line consists
of a username optionally followed by resource limits. If resource limits are
present, they may be followed by a comment.
.PP
The last line is the default entry and can contain any name that does not
represent a user on the system.
.B Default
is typically used.
.PP
If there is no second field, no limits are imposed on that user. Otherwise,
the second field consists of a letter identifying the resource to be limited
and a number specifying the limit. Multiple limits are simply concatenated
together. If multiple entries appear for the same user, the first is used.
.PP
Valid resource limiters are
.B F
followed by the number of file descriptors,
.B P
followed by the number of processes,
.B C
followed by the maximum CPU time in minutes, and
.B D
followed by the in-memory data limit in Megabytes.
.PP
Reasonable limits for typical users are C60D20F96P28
.SH VERSION
.B lshell
version 2.01, March 11, 1995.
.SH WARNINGS
The user name in
.B /etc/lshell.conf
must exactly match (case included) the entry in
.B /etc/lshell.conf.
.SH BUGS
None. Just undocumented features. If you discover any bugs, please mail them
to the author (Joel Katz) at Stimpson@Panix.COM.
.PP
If all shells do not live in
.B /bin
LShell will work properly.
.PP
Some versions of bash fail to correctly report the limit on the number of
file descriptors, however
.B lshell
does set this limit properly.