On Tue, 25 May 1999, Evgeny Stambulchik wrote:
Because a user can change them.
For example, if you can setrlimit() RSIZE_CPU to infinity (depends on the
include files), you can change it.
You cannot limit -h a resource as user. This can only be done as root, and
when you login, your shell runs using your uid/gid, and thus limit -h in
/etc/csh.cshrc wont set the hardlimit. You can set the soft limit in
there, but any user can change it from the command line.
--Ariel
> Date: Mon, 24 May 1999 12:24:21 +0300 (IDDT)
> From: Ariel Biener <[EMAIL PROTECTED]>
> Subject: tcsh limits
>
> > This is a bit unrelated. I want to restrict cputime on tcsh to a
> >certain value, both hard and soft limits. I want users not to be able to
> >mess with it. Is it possible (without changing the code significantly,
> >this I can do myself) with the current code to use a cof file for tcsh
> >from which it will take it's global limits (before it goes through
> >/etc/csh.* and ~/.cshrc and such).
>
> What's wrong in putting these limits in /etc/csh.cshrc? (and disabling chsh).
>
> Regards,
>
> Evgeny
>
+---------------------------------------------------------------+
| Ariel Biener |
| e-mail: [EMAIL PROTECTED] Work phone: 03-6406086 |
| fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
+---------------------------------------------------------------+