>> I wish that a super user can change the stack size limitation
>> for general users. At the moment only in the sueruser shell,
>> the superuser can issue
>IIRC, putting the appropriate ulimit command in the system login scripts
>(/etc/{profile|csh.login}) should enable stack limits, and not allow users
>to increase their limits.
That won't work. The user's identity has already been established before the
shell starts, so the shell startup scripts are too late to do things
requiring root privileges. Anything that can be done in /etc/profile can be
done by the user himself. (Note that if you wanted to _lower_ the limits,
that strategy might work, since you don't have to be root to impose a limit
on yourself. But you'd have to change the various startup files for _all_ the
different shells, and besides, the original poster was looking for a way to
_raise_ the limit for certain users.)
The proper place to implement user-specific resource limits is in /bin/login
itself. If you are using the login that comes in the shadow suite, you can
configure them in /etc/limits. If you are not, then wait for the inevitable
followups:
(I'll provide a template)
<That's not the proper place for it at all! shadow suite's login is wrong.
<
<What you really SHOULD do is...
--
Alan Curry
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d? s++:-- a-- C++ UB+++L++++ P+ L+++>++++ E--- W-- N++ o K? w--- O? M--
V? PS+ PE+ Y+ PGP-(--) t* 5++ X+++ R- tv++ b-- DI- D++ G+++ !e h! r-->+++ y?
------END GEEK CODE BLOCK------