home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12663 < prev    next >
Encoding:
Text File  |  1992-07-22  |  2.4 KB  |  50 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  3. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  4. Subject: Re: Am I in SYLOGIN?
  5. Message-ID: <1992Jul22.190807.6302@cco.caltech.edu>
  6. Sender: news@cco.caltech.edu
  7. Nntp-Posting-Host: sol1.gps.caltech.edu
  8. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  9. Organization: HST Wide Field/Planetary Camera
  10. References: <1992Jul22.113259.1@utxvms.cc.utexas.edu>
  11. Date: Wed, 22 Jul 1992 19:08:07 GMT
  12. Lines: 36
  13.  
  14. In article <1992Jul22.113259.1@utxvms.cc.utexas.edu>, ccdk001@utxvms.cc.utexas.edu writes:
  15. >Anyone know of a simple, fairly fullproof way to determine if an image
  16. >is being run from SYLOGIN.COM or some other known place (step) during
  17. >process creation?
  18. >
  19. >I have an installed privileged application that I want executed during the
  20. >login process, but I don't want users to be able to execute it directly.
  21. >It does "things" based on an assumed state of that process/environment at
  22. >that time particular time.  Allowing users to change their environment
  23. >(logical names, devices, etc.) and then rerunning this image could be
  24. >a problem in some instances.
  25. >
  26. >Grabing the procedure depth/name from the clidata doesn't seem fullproof
  27. >enough.
  28.  
  29. Certainly not, unless you have stuff in SYS$SYLOGIN: that is guaranteed to put
  30. the process back in the known state before the image is run.
  31.  
  32. >Checking the imagecount in the process header could work, but
  33. >I dunno..  Patching loginout (again!) is also too messy.    I'd appreciate
  34. >any ideas/strategies.
  35.  
  36. How about having the image check for a known executive-mode logical name in the
  37. job table?  If it finds the logical name, it assumes it's already been run and
  38. exits.  If it doesn't find it, it creates it, does whatever it's supposed to
  39. do, and exits.  For this to be effective, you'd have to set the DISCTLY flag in
  40. the UAF for all the accounts, and have SYS$SYLOGIN set NOCONTROL=Y after
  41. running the image.
  42. --------------------------------------------------------------------------------
  43. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  44.  
  45. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  46. understanding of astronomy is purely at the amateur level (or below).  So
  47. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  48. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  49. hold me responsible for it, but my organization had nothing to do with it.
  50.