SUMMARY: dunix 4.0D and root tcsh limit

From: lombardi emanuele <lele_at_mantegna.casaccia.enea.it>
Date: Wed, 10 Jun 1998 15:22:51 +0200 (MET DST)

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_at_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_at_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
Received on Wed Jun 10 1998 - 15:20:07 NZST

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