home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / utils / bug / 1513 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.0 KB  |  47 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!chestnut.cs.columbia.edu!ezk
  3. From: ezk@chestnut.cs.columbia.edu (Erez "HWank1" Zadok)
  4. Subject: Two more GNU finger 1.35 .fingerrc problems
  5. Message-ID: <9209080948.AA12509@chestnut.cs.columbia.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 8 Sep 1992 09:48:11 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 34
  12.  
  13. Apparently when I finger anyone who has a .fingerrc file, my .env gets
  14. executed no matter what, and then the script does.  I even unset the value
  15. of my ENV variable (in ksh) and thought that had something to do with it.
  16. But that did not help.  What did help was when I removed my .env file.
  17.  
  18. Finger should exec() the .fingerrc script and nothing more.  In the top of
  19. my .kshrc I put
  20.  
  21.     #!/bin/ksh -p
  22.  
  23. using the -p to explicitly ask for .env files not to be executed.  Your code
  24. probably executes a shell on behalf of the fingered user, and then the
  25. user's .fingerrc.
  26.  
  27. Another problem I have is that whenever I finger someone who has a .fingerrc
  28. file (in -l mode), only the output from executing the .fingerrc file is
  29. shown, and nothing more.  If the user did not have a .fingerrc file, I would
  30. get the default long listing (in long mode): user name, id, shell, mail
  31. status, .plan and .project.
  32.  
  33. I think that what you need to do is supply a few more options (compile time
  34. or run time.)  These will allow me to always get the long "standard"
  35. information no matter what, even if the user has a .fingerrc file.  Another
  36. option would be to execute the .fingerrc instead, in addition to "standard"
  37. information, or non at all.  The last option, one to turn off execution of
  38. .fingerrc, controlled by the client, will be very popular among people with
  39. tight computer security in mind.
  40.  
  41. Erez Zadok.
  42. ---
  43. A wank's morning starts one machine   | Arpa:   ezk@cs.columbia.edu
  44. clock cycle after midnight.           | Usenet: ...!rutgers!columbia!cs!ezk
  45.  -HebrewWank #1 (US meaning, not UK!) | Bitnet: erzus@cuvmb.BITNET
  46.  
  47.