tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: lombardi emanuele <lele () mantegna ! casaccia ! enea ! it>
To: tru64-unix-managers
Subject: SUMMARY: dunix 4.0D and root tcsh limit
Date: Wed, 10 Jun 1998 13:22:51 +0000	[thread overview]
Message-ID: <96078712011570.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1998-06-10 13:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox