home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 123 / text0000.txt < prev   
Encoding:
Text File  |  1991-03-07  |  1.2 KB  |  27 lines

  1. Submitted-by: Chuck.Phillips@FtCollins.NCR.COM (Chuck.Phillips)
  2.  
  3. >>>>> On 4 Feb 91 11:50:07 GMT, Chuck.Phillips@FtCollins.NCR.COM (Chuck.Phillips) said:
  4. Chuck> Invitation for discussion: If the path after the "#!" doesn't begin
  5. Chuck> with "/", "./" or "../", should PATH be searched for the execuatble?
  6. Chuck> If so, how best could this be implemented?
  7.  
  8. Based on feedback from Ernest Hua (thanks!), I'd like to ammend this.  SUID
  9. scripts under no circumstances should allow PATH searching for '#!'
  10. arguments -- even if not SUID root.
  11.  
  12. Continuing the earlier thread, not only are directory structures
  13. non-portable, but some interpreters (e.g. pearl, gawk, bash) have no POSIX
  14. or otherwise defined directory location.  '#!' path searching also allows
  15. vendors to write their own interpreters for scripts without forcing a
  16. particular directory structure on admin.  Further, it allows different
  17. versions of the same interpreter to be used simultaneously based on each
  18. user's path.
  19. --
  20. Chuck Phillips  MS440
  21. NCR Microelectronics             chuck.phillips%ftcollins.ncr.com
  22. 2001 Danfield Ct.
  23. Ft. Collins, CO.  80525           ...uunet!ncrlnk!ncr-mpd!bach!chuckp
  24.  
  25. Volume-Number: Volume 22, Number 123
  26.  
  27.