I've written a shell script, called credentials.sh
, which contains:
export USERNAME = 'user'
export PASSWORD = 'pass'
Security of these variables is no big deal.
Two questions.
- When I run this script, ./credentials.sh (both as root and not), it doesn't actually export the vars. Why is this?
- What is the preferred way to do so they are universally available (Ubuntu 14.04)?