From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011570.tru64-unix-managers.marc@archive.invalid> From: lombardi emanuele Date: Wed, 10 Jun 1998 13:22:51 +0000 To: tru64-unix-managers Subject: SUMMARY: dunix 4.0D and root tcsh limit X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011570 Dear gurus, I found I was not the only one having the strange behavour described at the end of that summary. Even Richard Bemrose 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