How to set Hard limits in /etc/profile

From: Marie-Francoise Thiry <mfdevil_at_ulb.ac.be>
Date: Wed, 23 Jun 1999 11:15:04 +0200 (MET DST)

Hello,

We are running Tru64-unix v4.0E on alpha servers GS140.
We want to reduce resource limits (cpu time, memory....) soft and hard
at any interactive login.
So we have added in /etc/profile commands 'ulimit -S ...' and 'ulimit -H...'.
The problem is that 'ulimit -H..' seems to be allowed only for superuser
even for decreasing current limit.(ulimit is here the imbedded shell command)
As /etc/profile is executed in behalf of the user's login, we are only
able to reduce soft limits. And a malicious user can increase them quickly.

Question: how to reduce hard limits at login time for sh and ksh users.
PS: it is OK for csh users.
Thanks ,

================================================
Marie-Francoise Devillers-Thiry - System .
Brussels Free Universities Computer Center (ULB)- CP 197.
50,Av. F.D. Roosevelt, B-1050 Brussels, BELGIUM.

Email : MF.Devillers_at_ulb.ac.be Tel : ++32 2 6503728 Fax : ++32 2 6503740
Received on Wed Jun 23 1999 - 09:51:01 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT