home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nntp1.radiomail.net!nntp1.radiomail.net!usenet
- From: hogan@radiomail.net (Emmett Hogan)
- Newsgroups: comp.lang.perl
- Subject: "Secure" way to find out hostname
- Date: 5 Jan 1993 22:30:00 GMT
- Organization: Anterior Technology
- Lines: 12
- Distribution: world
- Message-ID: <1id258INN8j6@nntp1.radiomail.net>
- NNTP-Posting-Host: rfi.radiomail.net
- Keywords: setuid, hostname
-
- Hi All,
-
- Quick and hopefully easy question:
-
- Is there an acceptable way to find out your machine's hostname in a setuid
- PERL script? When I try this: $host = `/bin/hostname` I get INSECURE
- path.
-
- Any ideas?
-
- Thanks in advance,
- Emmett
-