develooper Front page | perl.dbi.users | Postings from February 2011

BCP for passing $password to a command-line Perl script?

Thread Next
From:
Ivan Shmakov
Date:
February 15, 2011 23:50
Subject:
BCP for passing $password to a command-line Perl script?
Message ID:
874o84qv6b.fsf@violet.siamics.net
	BTW, what is the best current practice to pass ->connect ()
	$password to a command-line Perl script?

	Both specifying it via a command-line argument or via an
	environment variable (DBI_PASS) is insecure, as on some systems
	this information could easily be seen by the other users on the
	same host.

	Perhaps, some variation on Net::Netrc should be used instead?

	My primary interests currently are PostgreSQL, which can use
	Kerberos, and SQLite, which uses filesystem access rights
	instead, but just for the case…

-- 
FSF associate member #7257


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About