home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7674 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  622 b 

  1. Path: sparky!uunet!nntp1.radiomail.net!nntp1.radiomail.net!usenet
  2. From: hogan@radiomail.net (Emmett Hogan)
  3. Newsgroups: comp.lang.perl
  4. Subject: "Secure" way to find out hostname
  5. Date: 5 Jan 1993 22:30:00 GMT
  6. Organization: Anterior Technology
  7. Lines: 12
  8. Distribution: world
  9. Message-ID: <1id258INN8j6@nntp1.radiomail.net>
  10. NNTP-Posting-Host: rfi.radiomail.net
  11. Keywords: setuid, hostname
  12.  
  13. Hi All,
  14.  
  15. Quick and hopefully easy question:
  16.  
  17. Is there an acceptable way to find out your machine's hostname in a setuid  
  18. PERL script?  When I try this: $host = `/bin/hostname` I get INSECURE  
  19. path.
  20.  
  21. Any ideas?
  22.  
  23. Thanks in advance,
  24. Emmett
  25.