Matt Sergeant wrote:
> Anyone got any good ideas on picking up a site-unique MAC secret. What I
> need is something that won't change over server software upgrades, but
> isn't hard coded. At the moment I've picked:
>
> use Config;
> my $secret = Config->myconfig;
>
> (output of perl -V)
>
> But it's sensitive to perl upgrades. I'm pretty certain there must be
> _something_ I can use. I'm thinking perhaps of join('', `ls -la
> $some_dir_created_on_install`), but again, the sysadmin could easily
> inadvertently touch something in that dir.
>
> --
> <Matt/>
>
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.
What about generating some value from the MAC address of the server's
NIC(s)?
ifconifg <interface name> ether, or arp <hostname> will return MAC
addresses.
--
Doug Kyle - Information Systems
Grand Rapids Public Library
"We're superheros man, we don't have time to be charming . . . we're public
servants, not glamour boys" - The Tick.