home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9381 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.8 KB

  1. Xref: sparky comp.unix.questions:9381 comp.unix.programmer:3888 comp.unix.wizards:3294
  2. Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.wizards
  3. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!news.utdallas.edu!convex!tchrist
  4. From: Tom Christiansen <tchrist@convex.COM>
  5. Subject: Re: Making ``.plan'' EXECUTE a Program ???
  6. Message-ID: <1992Jul24.131605.8213@news.eng.convex.com>
  7. Originator: tchrist@pixel.convex.com
  8. Sender: usenet@news.eng.convex.com (news access account)
  9. Nntp-Posting-Host: pixel.convex.com
  10. Reply-To: tchrist@convex.COM (Tom Christiansen)
  11. Organization: CONVEX Realtime Development, Colorado Springs, CO
  12. References: <1992Jul23.121607.23500@oucsace.cs.ohiou.edu> <1992Jul23.215029.17415@aston.ac.uk>
  13. Date: Fri, 24 Jul 1992 13:16:05 GMT
  14. X-Disclaimer: This message was written by a user at CONVEX Computer
  15.               Corp. The opinions expressed are those of the user and
  16.               not necessarily those of CONVEX.
  17. Lines: 29
  18.  
  19. From the keyboard of evansmp@uhura.aston.ac.uk (Mark Evans):
  20. :sadkins@bigbird.cs.ohiou.edu (Scott W. Adkins) writes:
  21. :: 
  22. ::      The user's .plan or .project file cannot be a link to another file.  If
  23. ::      either of these files is something other than a regular file, it will be
  24. ::      ignored.
  25. :
  26. :This is because it was possible to do the following
  27. :ln -s <any file> ~/.plan
  28. :finger <my username>
  29. :and read any file on the system on some versions of unix.
  30. :The simplist fix is to just have fingerd refuse to read anything not a regular
  31. :file.
  32.  
  33. Seem to me that doing this in fingerd:
  34.  
  35.     if (fork) return;
  36.     setuid(-2);
  37.     (do file reading
  38.     exit(0);
  39.  
  40. Would have been better.
  41.  
  42. --tom
  43. -- 
  44.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  45.  
  46.  
  47.     And on the seventh day, He exited from append mode.
  48.