home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8542 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!decwrl!netcomsv!resonex!zenon
  3. From: zenon@resonex.com (Zenon Fortuna)
  4. Subject: Re: Inhibiting core dumps on HP7xx
  5. Message-ID: <1992Jul25.124640.7267@resonex.com>
  6. Organization: Resonex Inc., Sunnyvale CA
  7. References: <1992Jul24.145006.20539@hubcap.clemson.edu> <7371168@hpfcso.FC.HP.COM> <Brwwx9.CyL@ef2007.efhd.ford.com>
  8. Date: Sat, 25 Jul 1992 12:46:40 GMT
  9. Lines: 33
  10.  
  11. In article <Brwwx9.CyL@ef2007.efhd.ford.com> Mike O'Connor <mjo@fmsrl7.srl.ford.com> writes:
  12. >In article <7371168@hpfcso.FC.HP.COM> acmeyer@hpfcso.FC.HP.COM (Alan
  13. >C. Meyer) writes:
  14. >
  15. >:In comp.sys.hp, elwin@gamma.phys.clemson.edu (Lawrence E. Brown) writes:
  16. >:
  17. >:> I'm very tired of frequent dumps of 10-40Meg core files every
  18. >:> time I have a floating exception somewhere in my code (mostly
  19. >:> Fortran some C).  Is there any way to prevent core dumps in
  20. >:> HPUX8.0x on an HP700 series machine? 
  21. > (omitted example of the nocore.c code)
  22.  
  23. I see two other ways to protect against the core dumps:
  24.  
  25. Method 1 (brutal)
  26.  
  27.  - produce an empty file named "core" in the directory, in which you run
  28.    your application
  29.  - change the mode of this file to 444
  30.  
  31.  This will protect against creation of core (for non-superuser users)
  32.  
  33.  
  34. Method 2 (more finesse)
  35.  
  36.  - change the ownership of your executable file to dummy user (guest ?)
  37.  - change mode to 4755, setting the suid-on-execution
  38.  
  39.  When you run this application as different user (than "guest"), the core will
  40.  be not created, because accordingly to manual (core(4)) the core is not created
  41.  when the effective user ID is different than the real user ID.
  42.  
  43.     -Z.
  44.