* SUMMARY: dunix 4.0D and root tcsh limit
@ 1998-06-10 13:22 lombardi emanuele
0 siblings, 0 replies; only message in thread
From: lombardi emanuele @ 1998-06-10 13:22 UTC (permalink / raw)
To: tru64-unix-managers
Dear gurus,
I found I was not the only one having the strange behavour described at
the end of that summary. Even Richard Bemrose <rb237@phy.cam.ac.uk> had
the same complain. I found that it does'nt depend on C2 since it
happens even with BASE security.
I had a look to the sources of tcsh 6.07.02 and I found that at line
2030 of sh.func.c
it is esplicitally written not to do unlimit to root!!
.....
else if (limit == RLIM_INFINITY && euid != 0)
.....
I don't see any reason for that (security?), so I simply commented out
the condition and all works fine !!
.....
else if (limit == RLIM_INFINITY ) { /* && euid != 0) {*/
.....
If I were clever I would try to understand why in previous version of
DUnix the above condition did'nt avoid root to unlimit, but I'm not
clever and I'm happy enough to have found a solution !
Greetings from Italy,
Long life to our wonderfull mailing list,
Emanuele
--
Emanuele Lombardi
mail: AMB-GEM-CLIM ENEA Casaccia
I-00060 S.M. di Galeria (RM)
ITALY
mailto:lele@mantegna.casaccia.enea.it
tel +39 6 30483366
fax +39 6 30483591
> Dear Alphists,
>
> I'm using tcsh 6.07 on my alphas from a long while.
>>From the upgrade to DU 4.0D I'm no more able to
> unlimit the resource available to root login process when it uses tcsh.
>
> # limit
> cputime unlimited
> filesize unlimited
> datasize 1048576 kbytes
> stacksize 32768 kbytes
> coredumpsize 0 kbytes
> memoryuse 504320 kbytes
> vmemoryuse 1048576 kbytes
> descriptors 4096
>
> # unlimit
> unlimit: datasize: Can't remove limit
> unlimit: stacksize: Can't remove limit
> unlimit: coredumpsize: Can't remove limit
> unlimit: memoryuse: Can't remove limit
> unlimit: vmemoryuse: Can't remove limit
> unlimit: descriptors: Can't remove limit
>
> The VERY strange (to me, at least) is that ONLY ROOT has troubles
> while the normal users have not !!
> Only tcsh has problems while csh works properly.
>
> Of course I re-compiled tcsh under Dunix 4.0D but the results are
> always the same!
>
> Any help will be very apreciated,
> greetings from Italy,
>
> Emanuele
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-10 13:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-10 13:22 SUMMARY: dunix 4.0D and root tcsh limit lombardi emanuele
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox